1 write to TimeProvider
Microsoft.AspNetCore.Authentication (1)
AuthenticationHandler.cs (1)
157TimeProvider = Options.TimeProvider ?? TimeProvider.System;
15 references to TimeProvider
Microsoft.AspNetCore.Authentication (4)
AuthenticationHandler.cs (2)
159Clock = TimeProvider == TimeProvider.System ? SystemClock.Default : new SystemClock(TimeProvider);
RemoteAuthenticationHandler.cs (2)
234var cookieOptions = Options.CorrelationCookie.Build(Context, TimeProvider.GetUtcNow()); 269var cookieOptions = Options.CorrelationCookie.Build(Context, TimeProvider.GetUtcNow());
Microsoft.AspNetCore.Authentication.Cookies (4)
CookieAuthenticationHandler.cs (4)
94var currentUtc = TimeProvider.GetUtcNow(); 124var currentUtc = TimeProvider.GetUtcNow(); 180var currentUtc = TimeProvider.GetUtcNow(); 318issuedUtc = TimeProvider.GetUtcNow();
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
170var expiresAt = TimeProvider.GetUtcNow() + TimeSpan.FromSeconds(value);
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectHandler.cs (3)
1142var expiresAt = TimeProvider.GetUtcNow() + TimeSpan.FromSeconds(value); 1162var cookieOptions = Options.NonceCookie.Build(Context, TimeProvider.GetUtcNow()); 1193var cookieOptions = Options.NonceCookie.Build(Context, TimeProvider.GetUtcNow());
Microsoft.AspNetCore.Authentication.Twitter (3)
TwitterHandler.cs (3)
101var cookieOptions = Options.StateCookie.Build(Context, TimeProvider.GetUtcNow()); 175var cookieOptions = Options.StateCookie.Build(Context, TimeProvider.GetUtcNow()); 340var secondsSinceUnixEpocStart = TimeProvider.GetUtcNow() - DateTimeOffset.UnixEpoch;