6 writes to _state
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (6)
TlsAwaitable.cs (6)
52public bool IsActive => Volatile.Read(ref _state) == Active; 62if (Volatile.Read(ref _state) == Active) 75if (Interlocked.CompareExchange(ref _state, Active, Idle) == Canceled) 89if (Interlocked.CompareExchange(ref _state, Idle, Active) != Active) 104if (Interlocked.CompareExchange(ref _state, Idle, Active) != Active) 126if (Interlocked.Exchange(ref _state, Canceled) == Active)