Skip to content

Commit

Permalink
Register TimeProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Oct 11, 2024
1 parent 42b21a1 commit 33b9520
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Exceptionless.Core/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public static void RegisterServices(IServiceCollection services, AppOptions appO
return settings;
});

services.ReplaceSingleton<TimeProvider>(_ => TimeProvider.System);
services.AddSingleton<JsonSerializer>(s => JsonSerializer.Create(s.GetRequiredService<JsonSerializerSettings>()));
services.AddSingleton<ISerializer>(s => new JsonNetSerializer(s.GetRequiredService<JsonSerializerSettings>()));
services.AddSingleton<ITextSerializer>(s => new JsonNetSerializer(s.GetRequiredService<JsonSerializerSettings>()));
Expand Down

0 comments on commit 33b9520

Please sign in to comment.