31 references to MaxValue
Microsoft.AspNetCore.DataProtection.Extensions (1)
TimeLimitedDataProtector.cs (1)
119return Protect(plaintext, DateTimeOffset.MaxValue);
Microsoft.AspNetCore.DataProtection.Tests (5)
KeyManagement\KeyRingBasedDataProtectorTests.cs (5)
263var keyRing = new CacheableKeyRing(CancellationToken.None, DateTimeOffset.MaxValue, key, new[] { key }); 294var keyRing = new CacheableKeyRing(CancellationToken.None, DateTimeOffset.MaxValue, key, new[] { key }); 298var keyRing2 = new CacheableKeyRing(CancellationToken.None, DateTimeOffset.MaxValue, key, new[] { key2 }); 330var keyRing = new CacheableKeyRing(CancellationToken.None, DateTimeOffset.MaxValue, key, new[] { key }); 334var keyRing2 = new CacheableKeyRing(CancellationToken.None, DateTimeOffset.MaxValue, key, new[] { key2 });
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionContext.cs (1)
113AuthenticationExpiration = DateTimeOffset.MaxValue;
Internal\HttpConnectionDispatcher.cs (1)
669authenticateResultFeature.AuthenticateResult?.Properties?.ExpiresUtc ?? DateTimeOffset.MaxValue;
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (4)
3283Assert.True(context.AuthenticationExpiration < DateTimeOffset.MaxValue); 3345Assert.True(context.AuthenticationExpiration < DateTimeOffset.MaxValue); 3445Assert.True(context.AuthenticationExpiration < DateTimeOffset.MaxValue); 3483Assert.Equal(DateTimeOffset.MaxValue, context.AuthenticationExpiration);
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCachePolicyProviderTests.cs (1)
340context.ResponseTime = DateTimeOffset.MaxValue;
OutputCacheTests.cs (1)
711client.DefaultRequestHeaders.IfModifiedSince = DateTimeOffset.MaxValue;
Microsoft.AspNetCore.ResponseCaching.Tests (4)
ResponseCachingPolicyProviderTests.cs (3)
373context.ResponseTime = DateTimeOffset.MaxValue; 491context.ResponseTime = DateTimeOffset.MaxValue; 505context.ResponseTime = DateTimeOffset.MaxValue;
ResponseCachingTests.cs (1)
658client.DefaultRequestHeaders.IfModifiedSince = DateTimeOffset.MaxValue;
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PATCredential.cs (2)
22return new AccessToken(Token, DateTimeOffset.MaxValue); 27return new ValueTask<AccessToken>(new AccessToken(Token, DateTimeOffset.MaxValue));
Microsoft.DotNet.Helix.Client (2)
HelixApiTokenCredential.cs (2)
22return new AccessToken(Token, DateTimeOffset.MaxValue); 27return new ValueTask<AccessToken>(new AccessToken(Token, DateTimeOffset.MaxValue));
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
86AdditionalValues: [DateTimeOffset.MinValue, DateTimeOffset.MaxValue],
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
86AdditionalValues: [DateTimeOffset.MinValue, DateTimeOffset.MaxValue],
System.Data.Common (1)
System\Data\Common\DateTimeOffsetStorage.cs (1)
29DateTimeOffset min = DateTimeOffset.MaxValue;
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
248_ocspExpiration = _nextDownload = DateTimeOffset.MaxValue;
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (2)
323/// The <see cref="UtcDateTime"/> property is earlier than <see cref="MinValue"/> or later than <see cref="MaxValue"/>. 495/// The resulting <see cref="DateTimeOffset"/> value is greater than <see cref="MaxValue"/>
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
717ticks > DateTime.MaxTicks ? DateTimeOffset.MaxValue :
System.Private.Windows.Core.Tests (1)
System\Value\StoringDateTimeOffset.cs (1)
12{ DateTimeOffset.MaxValue },
System.Runtime.Caching (1)
System\Runtime\Caching\ObjectCache.cs (1)
20public static readonly DateTimeOffset InfiniteAbsoluteExpiration = DateTimeOffset.MaxValue;