398 references to UtcNow
aspire (3)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
Aspire.Azure.Npgsql.Tests (1)
Aspire.Dashboard (12)
Aspire.Dashboard.Components.Tests (5)
Aspire.Dashboard.Tests (7)
Aspire.Hosting (5)
Aspire.Hosting.Azure (1)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.Tests (9)
CustomResources.AppHost (6)
dotnet-svcutil-lib (24)
dotnet-user-jwts (2)
HelixTestRunner (2)
Identity.ExternalClaims (1)
IIS.FunctionalTests (2)
IISExpress.FunctionalTests (2)
InMemory.FunctionalTests (1)
Interop.FunctionalTests (1)
InteropClient (1)
JwtSample (2)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Authentication.Test (4)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.AspNetCore.Diagnostics.Tests (4)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (4)
3208LifetimeValidator = (before, expires, token, parameters) => expires > DateTime.UtcNow,
3244var token = new JwtSecurityToken("SignalRTestServer", "SignalRTests", claims, expires: DateTime.UtcNow.AddMinutes(1), signingCredentials: credentials);
3370LifetimeValidator = (before, expires, token, parameters) => expires > DateTime.UtcNow,
3406var token = new JwtSecurityToken("SignalRTestServer", "SignalRTests", claims, expires: DateTime.UtcNow.AddMinutes(1), signingCredentials: credentials);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpLogging.Tests (8)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (10)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
Microsoft.AspNetCore.OpenApi.Tests (4)
Services\CreateSchemaReferenceIdTests.cs (2)
164builder.MapPost("/", (Todo todo) => new TodoWithDueDate(todo.Id, todo.Title, todo.Completed, todo.CreatedAt, DateTime.UtcNow));
207builder.MapPost("/", (Todo todo) => new TodoWithDueDate(todo.Id, todo.Title, todo.Completed, todo.CreatedAt, DateTime.UtcNow));
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (2)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.SignalR.Client.Core (8)
Microsoft.AspNetCore.SignalR.Tests (4)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.Build.Framework (33)
BuildErrorEventArgs.cs (1)
96: this(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, DateTime.UtcNow)
BuildMessageEventArgs.cs (2)
71: this(message, helpKeyword, senderName, importance, DateTime.UtcNow)
163: this(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, importance, DateTime.UtcNow)
BuildWarningEventArgs.cs (1)
60: this(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, DateTime.UtcNow)
CriticalBuildMessageEventArgs.cs (1)
49: this(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, DateTime.UtcNow)
ExtendedCriticalBuildMessageEventArgs.cs (1)
52: this(type, subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, DateTime.UtcNow)
ProjectStartedEventArgs.cs (2)
61: this(message, helpKeyword, projectFile, targetNames, properties, items, DateTime.UtcNow)
86: this(projectId, message, helpKeyword, projectFile, targetNames, properties, items, parentBuildEventContext, DateTime.UtcNow)
TargetFinishedEventArgs.cs (2)
51: this(message, helpKeyword, targetName, projectFile, targetFile, succeeded, DateTime.UtcNow, null)
74: this(message, helpKeyword, targetName, projectFile, targetFile, succeeded, DateTime.UtcNow, targetOutputs)
TaskStartedEventArgs.cs (2)
48: this(message, helpKeyword, projectFile, taskFile, taskName, DateTime.UtcNow)
69: this(message, helpKeyword, projectFile, taskFile, taskName, DateTime.UtcNow, taskAssemblyLocation)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
Microsoft.CodeAnalysis.Workspaces (4)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.DotNet.ArcadeAzureIntegration (3)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Helix.JobSender (6)
Microsoft.DotNet.Internal.SymbolHelper (2)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.XUnitAssert.Tests (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (5)
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (19)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (10)
DnsSrvServiceEndpointResolverTests.cs (10)
44new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 66, 8888, "srv-a", [new AddressResult(DateTime.UtcNow.AddSeconds(64), IPAddress.Parse("10.10.10.10"))]),
45new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 62, 9999, "srv-b", [new AddressResult(DateTime.UtcNow.AddSeconds(64), IPAddress.IPv6Loopback)]),
46new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 62, 7777, "srv-c", [])
95new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 66, 8888, "srv-a", [new AddressResult(DateTime.UtcNow.AddSeconds(64), IPAddress.Parse("10.10.10.10"))]),
96new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 62, 9999, "srv-b", [new AddressResult(DateTime.UtcNow.AddSeconds(64), IPAddress.IPv6Loopback)]),
97new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 62, 7777, "srv-c", [])
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (6)
YarpServiceDiscoveryTests.cs (6)
277new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 66, 8888, "srv-a", [new AddressResult(DateTime.UtcNow.AddSeconds(64), IPAddress.Parse("10.10.10.10"))]),
278new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 62, 9999, "srv-b", [new AddressResult(DateTime.UtcNow.AddSeconds(64), IPAddress.IPv6Loopback)]),
279new ServiceResult(DateTime.UtcNow.AddSeconds(60), 99, 62, 7777, "srv-c", [new AddressResult(DateTime.UtcNow.AddSeconds(64), IPAddress.Loopback)])
Microsoft.Maui.Essentials (3)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (3)
Microsoft.ML.AutoML.Interactive (2)
Microsoft.ML.Core (3)
Microsoft.ML.Data (1)
Microsoft.ML.FastTree (1)
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.Maml (1)
Microsoft.ML.ResultProcessor (1)
Microsoft.ML.Samples (1)
Microsoft.ML.StandardTrainers (3)
Microsoft.VisualBasic.Forms.Tests (1)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (3)
OrderProcessor (1)
PresentationCore (4)
PresentationFramework (3)
PresentationUI (4)
ResponseCachingSample (1)
RunTests (2)
Sockets.BindTests (1)
Stress.TelemetryService (2)
System.Data.Odbc (3)
System.Diagnostics.DiagnosticSource (6)
System.Diagnostics.TraceSource (1)
System.Net.HttpListener (2)
System.Private.CoreLib (12)
System.Private.Windows.Core.Tests (1)
System.Reflection.Metadata (1)
System.Runtime.Caching (17)
System.ServiceModel.Federation (5)
System.ServiceModel.NetFramingBase (4)
System.ServiceModel.NetNamedPipe (3)
System.ServiceModel.UnixDomainSocket (3)
System.Text.Json (3)
System.Transactions.Local (3)
System.Windows.Forms.Tests (4)
Wasm.Performance.Driver (7)