1 write to _cancellationTokenSource
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
161
_cancellationTokenSource
= new CancellationTokenSource();
5 references to _cancellationTokenSource
Microsoft.Extensions.Logging.AzureAppServices (5)
BatchingLoggerProvider.cs (5)
90
while (!
_cancellationTokenSource
.IsCancellationRequested)
110
await WriteMessagesAsync(_currentBatch,
_cancellationTokenSource
.Token).ConfigureAwait(false);
121
await IntervalAsync(_interval,
_cancellationTokenSource
.Token).ConfigureAwait(false);
143
if (!_messageQueue.TryAdd(new LogMessage(timestamp, message), millisecondsTimeout: 0, cancellationToken:
_cancellationTokenSource
.Token))
167
_cancellationTokenSource
.Cancel();