refactor(architecture): enforce module boundaries

This commit is contained in:
2026-08-03 12:26:09 +08:00
parent 290a0c7bd7
commit caea0062b0
234 changed files with 21723 additions and 18117 deletions

View File

@@ -0,0 +1,18 @@
using Microsoft.Extensions.DependencyInjection;
using Tiku.Application.Jobs;
using Tiku.Infrastructure.Jobs;
namespace Tiku.Infrastructure;
internal static class JobsModule
{
internal static IServiceCollection AddJobsModule(this IServiceCollection services)
{
services.AddScoped<BackgroundJobService>();
services.AddScoped<IBackgroundJobService>(provider => provider.GetRequiredService<BackgroundJobService>());
services.AddScoped<IBackgroundJobQueue>(provider => provider.GetRequiredService<BackgroundJobService>());
services.AddScoped<IBackgroundJobProcessor>(provider => provider.GetRequiredService<BackgroundJobService>());
services.AddScoped<IBackgroundJobOperations>(provider => provider.GetRequiredService<BackgroundJobService>());
return services;
}
}