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
commit0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646 (patch)
tree5ff72f5a44cb4091af656cd57ebbd62620b39cfe
parent15a7ea0ef0f4ea2231beebcad49f50f79a3d70de (diff)
downloadtimeline-0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646.tar.gz
timeline-0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646.tar.bz2
timeline-0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646.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);