Skip to content

BatchWorker Properties

General pattern for an asynchronous worker that performs a work task, when notified, to service queued work. Each work cycle handles ALL the queued work. If new work arrives during a work cycle, another cycle is scheduled. The worker never executes more than one instance of the work cycle at a time, and consumes no resources when idle. It uses TaskScheduler.Current to schedule the work cycles.

CancellationToken

getset
View source
protected CancellationToken CancellationToken
Gets or sets the cancellation used to cancel this batch worker.