Condividi tramite


IAsyncFlushable.FlushAsync(CancellationToken) Method

Definition

Flushes the in-memory buffer asynchronously.

public System.Threading.Tasks.Task<bool> FlushAsync (System.Threading.CancellationToken cancellationToken);
abstract member FlushAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function FlushAsync (cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

cancellationToken
CancellationToken

CancellationToken.

Returns

Returns true when telemetry data is transferred out of process (application insights server or local storage) and are emitted before the flush invocation. Returns false when transfer of telemetry data to server has failed with non-retriable http status code.

Applies to