C# Class Guidelines.Core.Threading.ProducerConsumerQueue

Show file Open project: basicdays/Guidelines

Public Methods

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

Private Methods

Method Description
Consume ( ) : void

Method Details

EnqueueItem() public method

public EnqueueItem ( System.Action item ) : void
item System.Action
return void

ProducerConsumerQueue() public method

public ProducerConsumerQueue ( int workerCount ) : System
workerCount int
return System

ProducerConsumerQueue() public method

public ProducerConsumerQueue ( int workerCount, ILogger logger ) : System
workerCount int
logger ILogger
return System

Shutdown() public method

public Shutdown ( bool waitForWorkers ) : void
waitForWorkers bool
return void