C# Class CmisSync.Lib.Queueing.ConnectionScheduler

Connection scheduler.
Inheritance: SyncEventHandler, IConnectionScheduler
Exibir arquivo Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
ConnectionScheduler ( RepoInfo repoInfo, ISyncEventQueue queue, ISessionFactory sessionFactory, IAuthenticationProvider authProvider, int interval = 5000 ) : System

Initializes a new instance of the CmisSync.Lib.Queueing.ConnectionScheduler class.

Dispose ( ) : void

Releases all resource used by the CmisSync.Lib.Queueing.SyncScheduler object.

Call Dispose when you are finished using the CmisSync.Lib.Queueing.SyncScheduler. The Dispose method leaves the CmisSync.Lib.Queueing.SyncScheduler in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.Queueing.SyncScheduler so the garbage collector can reclaim the memory that the CmisSync.Lib.Queueing.SyncScheduler was occupying.

Handle ( ISyncEvent e ) : bool

Handles repository configuration change events by extracting new login informations and returns false

Start ( ) : void

Start this instance.

Protected Methods

Method Description
Connect ( ) : bool

Connect this instance.

ConnectionScheduler ( ConnectionScheduler original ) : System

Initializes a new instance of the CmisSync.Lib.Queueing.ConnectionScheduler class by copy all members.

Private Methods

Method Description
Reconnect ( ) : void

Method Details

Connect() protected method

Connect this instance.
protected Connect ( ) : bool
return bool

ConnectionScheduler() protected method

Initializes a new instance of the CmisSync.Lib.Queueing.ConnectionScheduler class by copy all members.
protected ConnectionScheduler ( ConnectionScheduler original ) : System
original ConnectionScheduler Original Instance.
return System

ConnectionScheduler() public method

Initializes a new instance of the CmisSync.Lib.Queueing.ConnectionScheduler class.
public ConnectionScheduler ( RepoInfo repoInfo, ISyncEventQueue queue, ISessionFactory sessionFactory, IAuthenticationProvider authProvider, int interval = 5000 ) : System
repoInfo CmisSync.Lib.Config.RepoInfo Repo info.
queue ISyncEventQueue Event queue.
sessionFactory ISessionFactory Session factory.
authProvider IAuthenticationProvider Auth provider.
interval int Retry interval in msec.
return System

Dispose() public method

Releases all resource used by the CmisSync.Lib.Queueing.SyncScheduler object.
Call Dispose when you are finished using the CmisSync.Lib.Queueing.SyncScheduler. The Dispose method leaves the CmisSync.Lib.Queueing.SyncScheduler in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.Queueing.SyncScheduler so the garbage collector can reclaim the memory that the CmisSync.Lib.Queueing.SyncScheduler was occupying.
public Dispose ( ) : void
return void

Handle() public method

Handles repository configuration change events by extracting new login informations and returns false
public Handle ( ISyncEvent e ) : bool
e ISyncEvent The event to handle.
return bool

Start() public method

Start this instance.
public Start ( ) : void
return void