Class ThreadQueueWorkerHandler<TItem>
Thread queue worker handler
public class ThreadQueueWorkerHandler<TItem> : AdvancedHandler<ThreadQueueWorkerHandler<TItem>, ThreadQueueWorkerEventArgs<TItem>>
Type Parameters
TItem
- Inheritance
-
objectThreadQueueWorkerHandler<TItem>
- Inherited Members
- Extension Methods
Methods
Start(IEnumerable<TItem>)
Commences the event by invoking the registered Before event handlers. Returns a handle for completing the event.
public IAdvancedEventHandle<ThreadQueueWorkerEventArgs<TItem>> Start(IEnumerable<TItem> items)
Parameters
items
IEnumerable<TItem>Worker queue.
Returns
- IAdvancedEventHandle<ThreadQueueWorkerEventArgs<TItem>>
Returns a handle for completing the event.
StartEvent(IEnumerable<TItem>)
Initiates the event handling
[Obsolete("Use Start(IEnumerable<TItem>) instead.")]
[ObsoleteSince(30, 2)]
public ThreadQueueWorkerHandler<TItem> StartEvent(IEnumerable<TItem> items)
Parameters
items
IEnumerable<TItem>Worker queue
Returns
- ThreadQueueWorkerHandler<TItem>