BatchWorkerFromDelegate Class

Definition

A BatchWorker implementation which executes a provided delegate as its Work() implementation.

public class BatchWorkerFromDelegate : Orleans.BatchWorker
type BatchWorkerFromDelegate = class
    inherit BatchWorker
Public Class BatchWorkerFromDelegate
Inherits BatchWorker
Inheritance
BatchWorkerFromDelegate

Constructors

BatchWorkerFromDelegate(Func<Task>)
BatchWorkerFromDelegate(Func<Task>, CancellationToken)

Initializes a new BatchWorkerFromDelegate instance.

Fields

lockable (Inherited from BatchWorker)

Properties

CancellationToken

Gets or sets the cancellation used to cancel this batch worker.

(Inherited from BatchWorker)

Methods

IsIdle()

Check if this worker is idle.

(Inherited from BatchWorker)
Notify()

Notify the worker that there is more work.

(Inherited from BatchWorker)
Notify(DateTime)

Instructs the batch worker to run again to check for work, if it has not run again already by then, at specified utcTime.

(Inherited from BatchWorker)
NotifyAndWaitForWorkToBeServiced()

Notify the worker that there is more work, and wait for the current work cycle, and also the next work cycle if there is currently unserviced work.

(Inherited from BatchWorker)
WaitForCurrentWorkToBeServiced()

Wait for the current work cycle, and also the next work cycle if there is currently unserviced work.

(Inherited from BatchWorker)
Work()

Implement this member in derived classes to define what constitutes a work cycle

Applies to