Compartir a través de


BatchWorkerFromDelegate Constructores

Definición

Sobrecargas

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

Inicializa una nueva instancia de 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>

Se aplica a

BatchWorkerFromDelegate(Func<Task>, CancellationToken)

Source:
BatchWorker.cs

Inicializa una nueva instancia de 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>

Delegado que se va a invocar cuando Work() se invoca.

cancellationToken
CancellationToken

Token de cancelación usado para detener el trabajo.

Se aplica a