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

Sync event queue.
Наследование: ICountingQueue
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
categoryCounter IEventCounter
fullCounter IEventCounter

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

Метод Описание
AddEvent ( ISyncEvent newEvent ) : void

Adds the event to the queue.

Continue ( ) : void

Continue the queue consumer if it is suspended.

Dispose ( ) : void

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

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

StopListener ( ) : void

Stops the listener.

Suspend ( ) : void

Suspend the queue consumer thread after finished the processing of the actual event.

SyncEventQueue ( ISyncEventManager manager ) : System

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

WaitForStopped ( System.TimeSpan timeout ) : bool

Waits for stopped.

WaitForStopped ( int milisecondsTimeout ) : bool

Waits for stopped.

WaitForStopped ( ) : void

Waits for stopped.

Защищенные методы

Метод Описание
Dispose ( bool isDisposing ) : void

Dispose the this instance if isDisposing is true.

Приватные методы

Метод Описание
Listen ( BlockingCollection queue, ISyncEventManager manager, WaitHandle waitHandle ) : void

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

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

Adds the event to the queue.
When Listener is already stopped
public AddEvent ( ISyncEvent newEvent ) : void
newEvent ISyncEvent New event.
Результат void

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

Continue the queue consumer if it is suspended.
public Continue ( ) : void
Результат void

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

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

Dispose() защищенный Метод

Dispose the this instance if isDisposing is true.
protected Dispose ( bool isDisposing ) : void
isDisposing bool If set to true is disposing.
Результат void

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

Stops the listener.
public StopListener ( ) : void
Результат void

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

Suspend the queue consumer thread after finished the processing of the actual event.
public Suspend ( ) : void
Результат void

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

Initializes a new instance of the CmisSync.Lib.Queueing.SyncEventQueue class.
public SyncEventQueue ( ISyncEventManager manager ) : System
manager ISyncEventManager Manager holding the handler.
Результат System

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

Waits for stopped.
public WaitForStopped ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan Timeout time span.
Результат bool

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

Waits for stopped.
public WaitForStopped ( int milisecondsTimeout ) : bool
milisecondsTimeout int Miliseconds timeout.
Результат bool

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

Waits for stopped.
public WaitForStopped ( ) : void
Результат void

Описание свойств

categoryCounter защищенное свойство

The category counter.
protected IEventCounter categoryCounter
Результат IEventCounter

fullCounter защищенное свойство

The full counter.
protected IEventCounter fullCounter
Результат IEventCounter