C# Class Guidelines.Core.Threading.ProducerConsumerQueue

Afficher le fichier Open project: basicdays/Guidelines

Méthodes publiques

Méthode Description
EnqueueItem ( System.Action item ) : void
ProducerConsumerQueue ( int workerCount ) : System
ProducerConsumerQueue ( int workerCount, ILogger logger ) : System
Shutdown ( bool waitForWorkers ) : void

Private Methods

Méthode Description
Consume ( ) : void

Method Details

EnqueueItem() public méthode

public EnqueueItem ( System.Action item ) : void
item System.Action
Résultat void

ProducerConsumerQueue() public méthode

public ProducerConsumerQueue ( int workerCount ) : System
workerCount int
Résultat System

ProducerConsumerQueue() public méthode

public ProducerConsumerQueue ( int workerCount, ILogger logger ) : System
workerCount int
logger ILogger
Résultat System

Shutdown() public méthode

public Shutdown ( bool waitForWorkers ) : void
waitForWorkers bool
Résultat void