mirror of
https://github.com/bitwarden/server.git
synced 2025-05-22 20:11:04 -05:00

* [NO LOGIC] Organize Billing provider code * Run dotnet format * Run dotnet format' * Fixed using after merge * Fixed test usings after merge
22 lines
938 B
C#
22 lines
938 B
C#
using Bit.Commercial.Core.AdminConsole.Providers;
|
|
using Bit.Commercial.Core.AdminConsole.Services;
|
|
using Bit.Commercial.Core.Billing.Providers.Services;
|
|
using Bit.Core.AdminConsole.Providers.Interfaces;
|
|
using Bit.Core.AdminConsole.Services;
|
|
using Bit.Core.Billing.Providers.Services;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Bit.Commercial.Core.Utilities;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static void AddCommercialCoreServices(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IProviderService, ProviderService>();
|
|
services.AddScoped<ICreateProviderCommand, CreateProviderCommand>();
|
|
services.AddScoped<IRemoveOrganizationFromProviderCommand, RemoveOrganizationFromProviderCommand>();
|
|
services.AddTransient<IProviderBillingService, ProviderBillingService>();
|
|
services.AddTransient<IBusinessUnitConverter, BusinessUnitConverter>();
|
|
}
|
|
}
|