C# Class Open.Core.Common.Collection.ProcessQueue

A queue of items waiting to be processed.
Exibir arquivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
Add ( System.Action action ) : ProcessQueueHandle

Adds a new item to process to the end of the queue.

Contains ( ProcessQueueHandle handle ) : bool

Determines whether the specified handle is contained within the queue.

GetPosition ( ProcessQueueHandle handle ) : int

Gets the position of a handle within the queue.

ProcessNext ( ) : bool

Processes the next item within the queue.

Remove ( ProcessQueueHandle handle ) : void

Removes the given handle from the queue.

Private Methods

Method Description
OnProcessed ( ProcessQueueEventArgs args ) : void
OnProcessing ( ProcessQueueEventArgs args ) : void

Method Details

Add() public method

Adds a new item to process to the end of the queue.
public Add ( System.Action action ) : ProcessQueueHandle
action System.Action The action to process.
return ProcessQueueHandle

Contains() public method

Determines whether the specified handle is contained within the queue.
public Contains ( ProcessQueueHandle handle ) : bool
handle ProcessQueueHandle The handle to look for.
return bool

GetPosition() public method

Gets the position of a handle within the queue.
public GetPosition ( ProcessQueueHandle handle ) : int
handle ProcessQueueHandle The handle to examine.
return int

ProcessNext() public method

Processes the next item within the queue.
public ProcessNext ( ) : bool
return bool

Remove() public method

Removes the given handle from the queue.
public Remove ( ProcessQueueHandle handle ) : void
handle ProcessQueueHandle The handle to remove.
return void