2 writes to _cancellationTokenSource
Microsoft.Extensions.Logging.EventSource (2)
LoggingEventSource.cs (2)
383CancellationTokenSource cts = LazyInitializer.EnsureInitialized(ref _cancellationTokenSource, () => new CancellationTokenSource()); 390CancellationTokenSource? tcs = Interlocked.Exchange(ref _cancellationTokenSource, null);