Last change
on this file since 13520 was
12262,
checked in by bayral, 13 years ago
|
piwigo.upload retrieve data, and ready to upload
|
File size:
944 bytes
|
Rev | Line | |
---|
[12256] | 1 | using System; |
---|
| 2 | using System.Collections.Generic; |
---|
| 3 | using System.Linq; |
---|
| 4 | using System.Text; |
---|
| 5 | |
---|
| 6 | using Com.Piwigo.Lib.IService; |
---|
| 7 | using Com.Piwigo.Lib.DTO; |
---|
| 8 | |
---|
| 9 | using Com.Piwigo.Uploader.DTO; |
---|
| 10 | |
---|
| 11 | namespace Com.Piwigo.Uploader.Service |
---|
| 12 | { |
---|
| 13 | public class Disconnect: IService |
---|
| 14 | { |
---|
| 15 | public void runService() |
---|
| 16 | { |
---|
| 17 | try |
---|
| 18 | { |
---|
| 19 | ModelManager.Instance.sess = PwgServiceProvider.Instance.PwgSessionService.Logout(); |
---|
[12262] | 20 | ModelManager.Instance.isConnected = false; |
---|
[12256] | 21 | System.Diagnostics.Debug.WriteLine("user : " + ModelManager.Instance.sess.UserName + " " + ModelManager.Instance.sess.Status); |
---|
| 22 | } |
---|
| 23 | catch (PwgServiceException ex) |
---|
| 24 | { |
---|
| 25 | System.Diagnostics.Debug.WriteLine(ex.Message); |
---|
| 26 | throw new ApplicationException("Erreur " + ex.NumeroErr + " " + ex.MessageErr); |
---|
| 27 | } |
---|
| 28 | } |
---|
| 29 | } |
---|
| 30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.