C# Class DotNetWorkQueue.Queue.WorkerCollection

Contains a collection of IWorker
Does not contain IPrimaryWorker
Inheritance: IWorkerCollection
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode Description
Dispose ( ) : void

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

PauseWorkers ( ) : void

Pauses all workers. Call ResumeWorkers to resume looking for work.

ResumeWorkers ( ) : void

Resumes all workers. Call PauseWorkers to pause looking for work

Start ( ) : void

Starts all workers.

Stop ( ) : void

Stops all workers.

WorkerCollection ( IWorkerConfiguration workerConfiguration, IWorkerFactory workerFactory, StopWorker stopWorker, ILogFactory log, IWorkerWaitForEventOrCancel workerPause ) : System

Initializes a new instance of the WorkerCollection class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Méthode Description
AddWorker ( ) : void

Adds a new worker.

CreateWorkers ( ) : void

Creates the workers

RaiseSystemException ( object sender, WorkerErrorEventArgs e ) : void

Raises the system exception.

RaiseUserException ( object sender, WorkerErrorEventArgs e ) : void

Raises the user exception.

Method Details

Dispose() public méthode

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

Dispose() protected méthode

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

PauseWorkers() public méthode

Pauses all workers. Call ResumeWorkers to resume looking for work.
public PauseWorkers ( ) : void
Résultat void

ResumeWorkers() public méthode

Resumes all workers. Call PauseWorkers to pause looking for work
public ResumeWorkers ( ) : void
Résultat void

Start() public méthode

Starts all workers.
Start must only be called once
public Start ( ) : void
Résultat void

Stop() public méthode

Stops all workers.
public Stop ( ) : void
Résultat void

WorkerCollection() public méthode

Initializes a new instance of the WorkerCollection class.
public WorkerCollection ( IWorkerConfiguration workerConfiguration, IWorkerFactory workerFactory, StopWorker stopWorker, ILogFactory log, IWorkerWaitForEventOrCancel workerPause ) : System
workerConfiguration IWorkerConfiguration The worker configuration.
workerFactory IWorkerFactory The worker factory.
stopWorker StopWorker The stop worker.
log ILogFactory The log.
workerPause IWorkerWaitForEventOrCancel The worker pause.
Résultat System