Circuit.RequestCircuitPauseAsync(CancellationToken) Method

Definition

Requests that the connected client begin the graceful circuit-pause flow.

public System.Threading.Tasks.ValueTask<bool> RequestCircuitPauseAsync(System.Threading.CancellationToken cancellationToken = default);
member this.RequestCircuitPauseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<bool>
Public Function RequestCircuitPauseAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Boolean)

Parameters

cancellationToken
CancellationToken

Cancels the request before it is accepted by the framework.

Returns

true if the request was accepted and the client was asked to begin pausing; otherwise false.

Remarks

The operation is idempotent. Observe completion through OnConnectionDownAsync(Circuit, CancellationToken) and OnCircuitClosedAsync(Circuit, CancellationToken).

Applies to