Partager via


BatchWorkerFromDelegate Constructeurs

Définition

Surcharges

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

Initialise une nouvelle instance 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))

Paramètres

work
Func<Task>

S’applique à

BatchWorkerFromDelegate(Func<Task>, CancellationToken)

Source:
BatchWorker.cs

Initialise une nouvelle instance 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)

Paramètres

work
Func<Task>

Délégué à appeler quand Work() est appelé.

cancellationToken
CancellationToken

Jeton d’annulation utilisé pour arrêter le worker.

S’applique à