C# Класс Open.Core.Common.Collection.ProcessQueue

A queue of items waiting to be processed.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
OnProcessed ( ProcessQueueEventArgs args ) : void
OnProcessing ( ProcessQueueEventArgs args ) : void

Описание методов

Add() публичный Метод

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.
Результат ProcessQueueHandle

Contains() публичный Метод

Determines whether the specified handle is contained within the queue.
public Contains ( ProcessQueueHandle handle ) : bool
handle ProcessQueueHandle The handle to look for.
Результат bool

GetPosition() публичный Метод

Gets the position of a handle within the queue.
public GetPosition ( ProcessQueueHandle handle ) : int
handle ProcessQueueHandle The handle to examine.
Результат int

ProcessNext() публичный Метод

Processes the next item within the queue.
public ProcessNext ( ) : bool
Результат bool

Remove() публичный Метод

Removes the given handle from the queue.
public Remove ( ProcessQueueHandle handle ) : void
handle ProcessQueueHandle The handle to remove.
Результат void