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 | fd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2 (patch) | |
| tree | db35ecc2ac8b328b59639abf5c2f8ffc553cb71e /Timeline | |
| parent | 74f75d851300d2d4b511e4062f50e0560e8b041d (diff) | |
| download | timeline-fd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2.tar.gz timeline-fd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2.tar.bz2 timeline-fd4a16df9d67ac017ea5c7f7ca5e4ef45f16c6a2.zip | |
feat(back): Make IPathProvider singleton.
Diffstat (limited to 'Timeline')
| -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);
|
