source: extensions/PiwigoLib/PiwigoUpload/Service/Disconnect.cs @ 13520

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
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6using Com.Piwigo.Lib.IService;
7using Com.Piwigo.Lib.DTO;
8
9using Com.Piwigo.Uploader.DTO;
10
11namespace 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();
20                ModelManager.Instance.isConnected = false;
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.