mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
Add sponsorship service to DI
This commit is contained in:
@ -21,12 +21,12 @@ namespace Bit.Core.Services
|
|||||||
public OrganizationSponsorshipService(IOrganizationSponsorshipRepository organizationSponsorshipRepository,
|
public OrganizationSponsorshipService(IOrganizationSponsorshipRepository organizationSponsorshipRepository,
|
||||||
IOrganizationRepository organizationRepository,
|
IOrganizationRepository organizationRepository,
|
||||||
IPaymentService paymentService,
|
IPaymentService paymentService,
|
||||||
IDataProtector dataProtector)
|
IDataProtectionProvider dataProtectionProvider)
|
||||||
{
|
{
|
||||||
_organizationSponsorshipRepository = organizationSponsorshipRepository;
|
_organizationSponsorshipRepository = organizationSponsorshipRepository;
|
||||||
_organizationRepository = organizationRepository;
|
_organizationRepository = organizationRepository;
|
||||||
_paymentService = paymentService;
|
_paymentService = paymentService;
|
||||||
_dataProtector = dataProtector;
|
_dataProtector = dataProtectionProvider.CreateProtector("OrganizationSponsorshipServiceDataProtector");
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<bool> ValidateRedemptionTokenAsync(string encryptedToken)
|
public async Task<bool> ValidateRedemptionTokenAsync(string encryptedToken)
|
||||||
|
@ -170,6 +170,7 @@ namespace Bit.Core.Utilities
|
|||||||
services.AddScoped<ICipherService, CipherService>();
|
services.AddScoped<ICipherService, CipherService>();
|
||||||
services.AddScoped<IUserService, UserService>();
|
services.AddScoped<IUserService, UserService>();
|
||||||
services.AddScoped<IOrganizationService, OrganizationService>();
|
services.AddScoped<IOrganizationService, OrganizationService>();
|
||||||
|
services.AddScoped<IOrganizationSponsorshipService, OrganizationSponsorshipService>();
|
||||||
services.AddScoped<ICollectionService, CollectionService>();
|
services.AddScoped<ICollectionService, CollectionService>();
|
||||||
services.AddScoped<IGroupService, GroupService>();
|
services.AddScoped<IGroupService, GroupService>();
|
||||||
services.AddScoped<IPolicyService, PolicyService>();
|
services.AddScoped<IPolicyService, PolicyService>();
|
||||||
|
Reference in New Issue
Block a user