diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-28 07:07:12 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-28 07:07:12 +0200 |
| commit | d76c180c9631df015d37138045c79a46cca350e8 (patch) | |
| tree | 1dd6a275237064cfb7df5ab77fc91c911804f9c7 /code/api | |
| parent | b4fd5cda30d3c7e0ee557d8a9725bb97a28711f1 (diff) | |
| download | greatoffice-d76c180c9631df015d37138045c79a46cca350e8.tar.xz greatoffice-d76c180c9631df015d37138045c79a46cca350e8.zip | |
refactor: Add VaultService as a Singleton
Diffstat (limited to 'code/api')
| -rw-r--r-- | code/api/src/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/api/src/Program.cs b/code/api/src/Program.cs index d670099..ebd686f 100644 --- a/code/api/src/Program.cs +++ b/code/api/src/Program.cs @@ -54,7 +54,7 @@ public static class Program builder.Services.AddScoped<MailService>(); builder.Services.AddScoped<PasswordResetService>(); builder.Services.AddScoped<UserService>(); - builder.Services.AddTransient<VaultService>(); + builder.Services.AddSingleton<VaultService>(); var vaultService = builder.Services.BuildServiceProvider().GetRequiredService<VaultService>(); var configuration = vaultService.GetCurrentAppConfiguration(); var logger = new LoggerConfiguration() |
