using F9WebAiTest.Application.Services; using F9WebAiTest.Application.Services.Attendance; using F9WebAiTest.Application.Services.Auth; using F9WebAiTest.Application.Services.Base; using F9WebAiTest.Application.Services.Notice; using F9WebAiTest.Application.Services.Prod; using MediatR; using Microsoft.Extensions.DependencyInjection; namespace F9WebAiTest.Application; public static class DependencyInjection { public static IServiceCollection AddApplication(this IServiceCollection services) { services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); services.AddScoped(); // MediatR:注册命令/查询 Handler services.AddMediatR(cfg => cfg.RegisterServicesFromAssembly(typeof(NotificationService).Assembly)); return services; } }