From 8b9e0648810f58ace2e77750a8225099a70b2714 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 30 Jan 2023 19:19:21 +0200 Subject: [PATCH] refactoring --- .../NetworkResurrector.Agent/Extensions/StartupExtensions.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/agent/NetworkResurrector.Agent/Extensions/StartupExtensions.cs b/src/agent/NetworkResurrector.Agent/Extensions/StartupExtensions.cs index 990da1e..eadcc30 100644 --- a/src/agent/NetworkResurrector.Agent/Extensions/StartupExtensions.cs +++ b/src/agent/NetworkResurrector.Agent/Extensions/StartupExtensions.cs @@ -7,7 +7,6 @@ using Netmash.Extensions.Swagger; using Netmash.Extensions.Swagger.Constants; using Netmash.Security.Authentication.Identity; using NetworkResurrector.Agent.Application; -using Newtonsoft.Json; using System.Reflection; namespace NetworkResurrector.Agent.Extensions @@ -16,8 +15,7 @@ namespace NetworkResurrector.Agent.Extensions { public static void ConfigureServices(this IServiceCollection services, IConfiguration configuration) { - services.AddControllers() - .AddNewtonsoftJson(o => o.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc); + services.AddControllers(); // Add basic authentication services.AddIdentityAuthentication(configuration.GetSection("IdentityServer")["BaseAddress"]);