refactor(jobs): modularize background job handlers
Some checks failed
ci / release-gate (push) Has been cancelled

This commit is contained in:
2026-08-03 13:28:21 +08:00
parent c497a3ca8d
commit 7adcb6a3d5
21 changed files with 871 additions and 645 deletions

View File

@@ -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;
}
}
}