Sdílet prostřednictvím


InMemoryChannel.FlushAsync(CancellationToken) Method

Definition

Will send all the telemetry items stored in the memory asynchronously.

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

Parameters

cancellationToken
CancellationToken

CancellationToken.

Returns

This method is hard-coded to return true. This channel offers minimal reliability guarantees and doesn't retry sending telemetry after a failure.

Implements

Remarks

Learn more

Applies to