diff options
author | crupest <crupest@outlook.com> | 2020-06-14 21:54:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-14 21:54:56 +0800 |
commit | 0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646 (patch) | |
tree | 5ff72f5a44cb4091af656cd57ebbd62620b39cfe /Timeline/Startup.cs | |
parent | 15a7ea0ef0f4ea2231beebcad49f50f79a3d70de (diff) | |
download | timeline-0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646.tar.gz timeline-0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646.tar.bz2 timeline-0b71a0c3d3c8b86c01ea8d56d63ba5a0c6655646.zip |
feat(back): Make IPathProvider singleton.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r-- | Timeline/Startup.cs | 2 |
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);
|