C# Class DotNetWorkQueue.Queue.WorkerWaitForEventOrCancel

Allows workers to be paused, and suspend looking for work until awoken
Inheritance: IWorkerWaitForEventOrCancel
ファイルを表示 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
Cancel ( ) : void

Cancels any current Wait calls

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Reset ( ) : void

Resets the wait status, causing Wait calls to wait.

Set ( ) : void

Sets the state to signaled; any Wait calls will return

Wait ( ) : bool

Waits until notified to stop waiting.

WorkerWaitForEventOrCancel ( IWaitForEventOrCancelWorker waitForEventOrCancel, IWorkerConfiguration workerConfiguration ) : System

Initializes a new instance of the WorkerWaitForEventOrCancel class.

Protected Methods

Method Description
ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Method Details

Cancel() public method

Cancels any current Wait calls
public Cancel ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Reset() public method

Resets the wait status, causing Wait calls to wait.
public Reset ( ) : void
return void

Set() public method

Sets the state to signaled; any Wait calls will return
public Set ( ) : void
return void

ThrowIfDisposed() protected method

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
return void

Wait() public method

Waits until notified to stop waiting.
public Wait ( ) : bool
return bool

WorkerWaitForEventOrCancel() public method

Initializes a new instance of the WorkerWaitForEventOrCancel class.
public WorkerWaitForEventOrCancel ( IWaitForEventOrCancelWorker waitForEventOrCancel, IWorkerConfiguration workerConfiguration ) : System
waitForEventOrCancel IWaitForEventOrCancelWorker The wait for event or cancel.
workerConfiguration IWorkerConfiguration The worker configuration.
return System