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:
parent
61e294c3cd
commit
8ef77388cc
@ -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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user