51 references to Add
Aspire.Dashboard (4)
Components\Controls\Chart\ChartBase.cs (4)
88while (_currentDataStartTime.Add(_tickDuration) < inProgressDataTime) 90_currentDataStartTime = _currentDataStartTime.Add(_tickDuration); 106else if (_lastUpdateTime.Add(TimeSpan.FromSeconds(0.2)) < TimeProvider.GetUtcNow()) 224end = end.Add(TimeSpan.FromSeconds(1));
dotnet-dev-certs (1)
Program.cs (1)
431now.Add(HttpsCertificateValidity),
Interop.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
153_nextEviction = now.Add(DefaultEvictionDelay);
Microsoft.AspNetCore.Authentication (1)
RemoteAuthenticationOptions.cs (1)
175cookieOptions.Expires = expiresFrom.Add(_options.RemoteAuthenticationTimeout);
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateValidationCache.cs (1)
53var absoluteExpiration = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(30));
Microsoft.AspNetCore.Authentication.Cookies (3)
CookieAuthenticationHandler.cs (3)
127_refreshExpiresUtc = currentUtc.Add(timeSpan); 324signInContext.Properties.ExpiresUtc = issuedUtc.Add(Options.ExpireTimeSpan); 331var expiresUtc = signInContext.Properties.ExpiresUtc ?? issuedUtc.Add(Options.ExpireTimeSpan);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
358cookieOptions.Expires = expiresFrom.Add(_options.ProtocolValidator.NonceLifetime);
Microsoft.AspNetCore.Authentication.Test (2)
CookieTests.cs (2)
535new AuthenticationProperties() { ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5)) })); 1047context.Properties.ExpiresUtc = _timeProvider.GetUtcNow().Add(TimeSpan.FromMinutes(5));
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterOptions.cs (1)
125options.Expires = expiresFrom.Add(_twitterOptions.RemoteAuthenticationTimeout);
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSDataStream.cs (1)
198if (!_disposed && (DateTimeOffset.UtcNow >= _lastDataReceivedTime.Add(_jsInteropDefaultCallTimeout)))
Microsoft.AspNetCore.Http.Abstractions (1)
CookieBuilder.cs (1)
118Expires = Expiration.HasValue ? expiresFrom.Add(Expiration.GetValueOrDefault()) : default(DateTimeOffset?)
Microsoft.AspNetCore.Rewrite (1)
UrlActions\ChangeCookieAction.cs (1)
52Expires = now.Add(Lifetime)
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
153_nextEviction = now.Add(DefaultEvictionDelay);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
153_nextEviction = now.Add(DefaultEvictionDelay);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
153_nextEviction = now.Add(DefaultEvictionDelay);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
153_nextEviction = now.Add(DefaultEvictionDelay);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
153_nextEviction = now.Add(DefaultEvictionDelay);
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1141UtcNow = UtcNow.Add(timespan);
Microsoft.Extensions.Caching.SqlServer (1)
DatabaseOperations.cs (1)
377absoluteExpiration = utcNow.Add(options.AbsoluteExpirationRelativeToNow.Value);
Microsoft.Extensions.Caching.SqlServer.Tests (11)
SqlServerCacheWithDatabaseTest.cs (10)
129var expectedExpirationTime = testClock.UtcNow.Add(cacheOptions.DefaultSlidingExpiration); 170var expectedExpirationTime = testClock.UtcNow.Add(cacheOptions.DefaultSlidingExpiration); 288var absoluteExpiration = utcNow.Add(TimeSpan.FromSeconds(20)); 343.SetAbsoluteExpiration(absolute: testClock.UtcNow.Add(TimeSpan.FromSeconds(30)))); 365var expectedAbsoluteExpiration = testClock.UtcNow.Add(absoluteExpirationRelativeToUtcNow); 421var absoluteExpiration = testClock.UtcNow.Add(TimeSpan.FromSeconds(10)); 438absoluteExpiration = testClock.UtcNow.Add(TimeSpan.FromMinutes(30)); 461var absoluteExpiration = testClock.UtcNow.Add(TimeSpan.FromSeconds(10)); 518var absoluteExpiration = utcNow.Add(TimeSpan.FromSeconds(20)); 574var expectedExpiresAtTime = testClock.UtcNow.Add(absoluteExpirationRelativeToNow);
TestClock.cs (1)
25UtcNow = UtcNow.Add(timeSpan);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
Windows\Network\WindowsTcpStateInfo.cs (1)
147_refreshAfter = TimeProvider.GetUtcNow().Add(_samplingInterval);
Windows\WindowsContainerSnapshotProvider.cs (3)
232_refreshAfterProcessMemory = now.Add(_memoryRefreshInterval); 260_refreshAfterMemory = now.Add(_memoryRefreshInterval); 311_refreshAfterCpu = now.Add(_cpuRefreshInterval);
Windows\WindowsSnapshotProvider.cs (2)
159_refreshAfterMemory = now.Add(_memoryRefreshInterval); 197_refreshAfterCpu = now.Add(_cpuRefreshInterval);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Windows\Tcp6TableInfoTests.cs (2)
23public static DateTimeOffset NextTimestamp = StartTimestamp.Add(DefaultTimeSpan); 266NextTimestamp = StartTimestamp.Add(DefaultTimeSpan);
Windows\TcpTableInfoTests.cs (2)
20public static DateTimeOffset NextTimestamp = StartTimestamp.Add(DefaultTimeSpan); 208NextTimestamp = StartTimestamp.Add(DefaultTimeSpan);
Windows\WindowsCountersTests.cs (2)
21TcpTableInfoTests.NextTimestamp = TcpTableInfoTests.StartTimestamp.Add(TcpTableInfoTests.DefaultTimeSpan); 23Tcp6TableInfoTests.NextTimestamp = TcpTableInfoTests.StartTimestamp.Add(TcpTableInfoTests.DefaultTimeSpan);
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
2223await store.SetLockoutEndDateAsync(user, DateTimeOffset.UtcNow.Add(Options.Lockout.DefaultLockoutTimeSpan),
System.Net.Security (2)
System\Net\Security\SslStreamCertificateContext.Linux.cs (2)
338DateTimeOffset nextCheckA = DateTimeOffset.UtcNow.Add(DefaultOcspRefreshInterval); 366_nextDownload = DateTimeOffset.UtcNow.Add(RefreshAfterFailureBackOffInterval);