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

Last change on this file since 12256 was 12256, checked in by bayral, 13 years ago

adding PiwigoUpload project for a simple tools for upload your photo recursively

File size: 884 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                System.Diagnostics.Debug.WriteLine("user : " + ModelManager.Instance.sess.UserName + " " + ModelManager.Instance.sess.Status);
21            }
22            catch (PwgServiceException ex)
23            {
24                System.Diagnostics.Debug.WriteLine(ex.Message);
25                throw new ApplicationException("Erreur " + ex.NumeroErr + " " + ex.MessageErr);
26            }
27        }
28    }
29}
Note: See TracBrowser for help on using the repository browser.