From 0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 14 Jun 2020 21:54:56 +0800 Subject: feat(back): Make IPathProvider singleton. --- Timeline/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Timeline') diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs index 918f025a..597fa4c3 100644 --- a/Timeline/Startup.cs +++ b/Timeline/Startup.cs @@ -62,7 +62,7 @@ namespace Timeline .AddScheme(AuthenticationConstants.Scheme, AuthenticationConstants.DisplayName, o => { }); services.AddAuthorization(); - services.AddScoped(); + services.AddSingleton(); services.AddAutoMapper(GetType().Assembly); -- cgit v1.2.3