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)
90while (!_cancellationTokenSource.IsCancellationRequested) 110await WriteMessagesAsync(_currentBatch, _cancellationTokenSource.Token).ConfigureAwait(false); 121await IntervalAsync(_interval, _cancellationTokenSource.Token).ConfigureAwait(false); 143if (!_messageQueue.TryAdd(new LogMessage(timestamp, message), millisecondsTimeout: 0, cancellationToken: _cancellationTokenSource.Token)) 167_cancellationTokenSource.Cancel();