using Bit.Core.Billing.Caches; using Bit.Core.Billing.Caches.Implementations; using Bit.Core.Billing.Licenses.Extensions; using Bit.Core.Billing.Pricing; using Bit.Core.Billing.Services; using Bit.Core.Billing.Services.Implementations; using Bit.Core.Billing.Services.Implementations.AutomaticTax; namespace Bit.Core.Billing.Extensions; using Microsoft.Extensions.DependencyInjection; public static class ServiceCollectionExtensions { public static void AddBillingOperations(this IServiceCollection services) { services.AddSingleton(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddKeyedTransient(AutomaticTaxFactory.PersonalUse); services.AddKeyedTransient(AutomaticTaxFactory.BusinessUse); services.AddTransient(); services.AddLicenseServices(); services.AddPricingClient(); } }