Compartilhar via


BatchWorkerFromDelegate Construtores

Definição

Sobrecargas

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

Inicializa uma nova instância 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))

Parâmetros

work
Func<Task>

Aplica-se a

BatchWorkerFromDelegate(Func<Task>, CancellationToken)

Origem:
BatchWorker.cs

Inicializa uma nova instância 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)

Parâmetros

work
Func<Task>

O delegado a ser invocado quando Work() é invocado.

cancellationToken
CancellationToken

O token de cancelamento usado para interromper o trabalho.

Aplica-se a