C# Класс CmisSync.Lib.Queueing.SyncScheduler

Sync scheduler. Inserts every pollInterval a new StartNextSyncEvent into the Queue
Наследование: SyncEventHandler, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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 Config changes if the poll interval has been changed. Resets also the timer if a full sync event has been recognized.

Start ( ) : void

Starts adding events into the Queue, if it has been stopped before.

Stop ( ) : void

Stops adding event into the Queue

SyncScheduler ( ISyncEventQueue queue, double pollInterval = 5000 ) : System

Initializes a new instance of the CmisSync.Lib.Queueing.SyncScheduler class. Starts adding events automatically after successful creation.

Описание методов

Dispose() публичный Метод

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
Результат void

Handle() публичный Метод

Handles Config changes if the poll interval has been changed. Resets also the timer if a full sync event has been recognized.
public Handle ( ISyncEvent e ) : bool
e ISyncEvent Sync event.
Результат bool

Start() публичный Метод

Starts adding events into the Queue, if it has been stopped before.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops adding event into the Queue
public Stop ( ) : void
Результат void

SyncScheduler() публичный Метод

Initializes a new instance of the CmisSync.Lib.Queueing.SyncScheduler class. Starts adding events automatically after successful creation.
public SyncScheduler ( ISyncEventQueue queue, double pollInterval = 5000 ) : System
queue ISyncEventQueue Sync event queue.
pollInterval double Poll interval.
Результат System