Condividi tramite


BatchWorkerFromDelegate Costruttori

Definizione

Overload

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

Inizializza una nuova istanza di BatchWorkerFromDelegate.

BatchWorkerFromDelegate(Func<Task>)

public BatchWorkerFromDelegate (Func<System.Threading.Tasks.Task> work);
new Orleans.BatchWorkerFromDelegate : Func<System.Threading.Tasks.Task> -> Orleans.BatchWorkerFromDelegate
Public Sub New (work As Func(Of Task))

Parametri

work
Func<Task>

Si applica a

BatchWorkerFromDelegate(Func<Task>, CancellationToken)

Origine:
BatchWorker.cs

Inizializza una nuova istanza di BatchWorkerFromDelegate.

public BatchWorkerFromDelegate (Func<System.Threading.Tasks.Task> work, System.Threading.CancellationToken cancellationToken = default);
new Orleans.BatchWorkerFromDelegate : Func<System.Threading.Tasks.Task> * System.Threading.CancellationToken -> Orleans.BatchWorkerFromDelegate
Public Sub New (work As Func(Of Task), Optional cancellationToken As CancellationToken = Nothing)

Parametri

work
Func<Task>

Delegato da richiamare quando Work() viene richiamato.

cancellationToken
CancellationToken

Token di annullamento utilizzato per arrestare il ruolo di lavoro.

Si applica a