aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-14 21:54:56 +0800
committercrupest <crupest@outlook.com>2020-06-14 21:54:56 +0800
commitfd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2 (patch)
treedb35ecc2ac8b328b59639abf5c2f8ffc553cb71e
parent74f75d851300d2d4b511e4062f50e0560e8b041d (diff)
downloadtimeline-fd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2.tar.gz
timeline-fd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2.tar.bz2
timeline-fd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2.zip
feat(back): Make IPathProvider singleton.
-rw-r--r--Timeline/Startup.cs2
1 files changed, 1 insertions, 1 deletions
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<MyAuthenticationOptions, MyAuthenticationHandler>(AuthenticationConstants.Scheme, AuthenticationConstants.DisplayName, o => { });
services.AddAuthorization();
- services.AddScoped<IPathProvider, PathProvider>();
+ services.AddSingleton<IPathProvider, PathProvider>();
services.AddAutoMapper(GetType().Assembly);