From fd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2 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/Startup.cs') 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