다음을 통해 공유


BatchWorkerFromDelegate 생성자

정의

오버로드

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

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))

매개 변수

work
Func<Task>

적용 대상

BatchWorkerFromDelegate(Func<Task>, CancellationToken)

Source:
BatchWorker.cs

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)

매개 변수

work
Func<Task>

가 호출될 때 Work() 호출할 대리자입니다.

cancellationToken
CancellationToken

작업자를 중지하는 데 사용되는 취소 토큰입니다.

적용 대상