refactor(jobs): modularize background job handlers
Some checks failed
ci / release-gate (push) Has been cancelled
Some checks failed
ci / release-gate (push) Has been cancelled
This commit is contained in:
@@ -2,8 +2,10 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
using Tiku.Application.PlatformAdmin;
|
||||
using Tiku.Application.PlatformAdmin.Operations;
|
||||
using Tiku.Application.PlatformBilling;
|
||||
using Tiku.Application.Jobs;
|
||||
using Tiku.Infrastructure.PlatformAdmin;
|
||||
using Tiku.Infrastructure.PlatformAdmin.Operations;
|
||||
using Tiku.Infrastructure.PlatformAdmin.TenantProvisioning;
|
||||
using Tiku.Infrastructure.PlatformBilling;
|
||||
|
||||
namespace Tiku.Infrastructure;
|
||||
@@ -13,6 +15,7 @@ internal static class PlatformModule
|
||||
internal static IServiceCollection AddPlatformModule(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<IPlatformAdminService, PlatformAdminService>();
|
||||
services.AddScoped<IBackgroundJobHandler, TenantExportJobHandler>();
|
||||
services.AddScoped<IPlatformOperationsQueryService, PlatformOperationsQueryService>();
|
||||
services.AddOptions<TenantProvisioningOptions>();
|
||||
services.AddScoped<IPlatformQuestionBankService, PlatformQuestionBankService>();
|
||||
@@ -33,4 +36,4 @@ internal static class PlatformModule
|
||||
services.AddOptions<SaasSubscriptionLifecycleOptions>();
|
||||
return services;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user