Edit

Share via


SiloHost.WaitForSiloShutdownAsync(Int32, CancellationToken) Method

Definition

Waits for the SiloTerminatedEvent to fire or cancellation token to be cancelled.

public System.Threading.Tasks.Task<bool> WaitForSiloShutdownAsync (int millisecondsTimeout, System.Threading.CancellationToken cancellationToken);
member this.WaitForSiloShutdownAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function WaitForSiloShutdownAsync (millisecondsTimeout As Integer, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

millisecondsTimeout
Int32

Timeout, or -1 for infinite.

cancellationToken
CancellationToken

Token that cancels waiting for shutdown.

Returns

Remarks

This is essentially an async version of WaitForOrleansSiloShutdown.

Applies to