Method
HttpRequestEventSource.WaitForFailAsync
WaitForFailAsync(TimeSpan) #
Asynchronously waits for the event source to fail or reach the specified idle tolerance.
public Task WaitForFailAsync(TimeSpan maximumIdleTolerance)Parameters #
maximumIdleTolerance TimeSpan
The maximum time to wait before considering the event source failed.
Returns #
A task that completes when the event source fails or the idle tolerance is reached.
WaitForFailAsync(CancellationToken) #
Asynchronously waits for the event source to fail or be canceled.
public Task WaitForFailAsync(CancellationToken cancellation)Parameters #
cancellation CancellationToken
A token to cancel the wait operation.
Returns #
A task that completes when the event source fails or is canceled.