SiloHost.ShutdownSiloAsync Method

Definition

Overloads

ShutdownSiloAsync(CancellationToken)

/// Returns a task that will resolve when the silo has finished shutting down, or the cancellation token is cancelled.

ShutdownSiloAsync(Int32, CancellationToken)

Returns a task that will resolve when the silo has finished shutting down, or the cancellation token is cancelled.

ShutdownSiloAsync(CancellationToken)

/// Returns a task that will resolve when the silo has finished shutting down, or the cancellation token is cancelled.

public System.Threading.Tasks.Task ShutdownSiloAsync (System.Threading.CancellationToken cancellationToken);
member this.ShutdownSiloAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ShutdownSiloAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

Token that cancels waiting for shutdown.

Returns

Applies to

ShutdownSiloAsync(Int32, CancellationToken)

Returns a task that will resolve when the silo has finished shutting down, or the cancellation token is cancelled.

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

Parameters

millisecondsTimeout
Int32

Timeout, or -1 for infinite.

cancellationToken
CancellationToken

Token that cancels waiting for shutdown.

Returns

Applies to