1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-17 00:03:17 -05:00

Changed to scoped to have access to ICurrentContext.

This commit is contained in:
Todd Martin 2025-06-13 17:12:47 -04:00
parent 61e294c3cd
commit 8ef77388cc
No known key found for this signature in database
GPG Key ID: 663E7AF5C839BC8F

View File

@ -235,10 +235,10 @@ public static class ServiceCollectionExtensions
});
services.AddScoped<IPaymentService, StripePaymentService>();
services.AddScoped<IPaymentHistoryService, PaymentHistoryService>();
services.AddScoped<ITwoFactorEmailService, TwoFactorEmailService>();
services.AddSingleton<IStripeSyncService, StripeSyncService>();
services.AddSingleton<IMailService, HandlebarsMailService>();
services.AddSingleton<ILicensingService, LicensingService>();
services.AddSingleton<ITwoFactorEmailService, TwoFactorEmailService>();
services.AddSingleton<ILookupClient>(_ =>
{
var options = new LookupClientOptions { Timeout = TimeSpan.FromSeconds(15), UseTcpOnly = true };