Api.Core: refactor

This commit is contained in:
Maksim Chegulov 2023-02-20 11:15:41 +03:00
parent e171ee44e5
commit b88203df33

View File

@ -29,11 +29,11 @@ public static class QuotaExtension
{
public static IServiceCollection RegisterFeature(this IServiceCollection services)
{
services.AddScoped<ITenantQuotaFeatureChecker, CountRoomAdminChecker>();
services.AddScoped<TenantQuotaFeatureCheckerCount<CountRoomAdminFeature>, CountRoomAdminChecker>();
services.AddScoped<CountRoomAdminChecker>();
services.AddScoped<ITenantQuotaFeatureStat<CountRoomAdminFeature, int>, CountRoomAdminStatistic>();
services.AddScoped<CountRoomAdminStatistic>();
services.AddScoped<ITenantQuotaFeatureChecker, CountPaidUserChecker>();
services.AddScoped<TenantQuotaFeatureCheckerCount<CountPaidUserFeature>, CountPaidUserChecker>();
services.AddScoped<CountPaidUserChecker>();
services.AddScoped<ITenantQuotaFeatureStat<CountPaidUserFeature, int>, CountPaidUserStatistic>();
services.AddScoped<CountPaidUserStatistic>();
services.AddScoped<ITenantQuotaFeatureChecker, CountUserChecker>();
services.AddScoped<TenantQuotaFeatureCheckerCount<CountUserFeature>, CountUserChecker>();