2 writes to _cacheExpirationTokenSource
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\XmlKeyManager.cs (2)
285
return Interlocked.CompareExchange<CancellationTokenSource?>(ref
_cacheExpirationTokenSource
, null, null).Token;
487
Interlocked.Exchange(ref
_cacheExpirationTokenSource
, new CancellationTokenSource())?.Cancel();
1 reference to _cacheExpirationTokenSource
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\XmlKeyManager.cs (1)
283
Debug.Assert(
_cacheExpirationTokenSource
!= null, $"{nameof(TriggerAndResetCacheExpirationToken)} must have been called first.");