SiloHost.WaitForSiloShutdownAsync(Int32, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.