Files
tiku-backend.net/Tiku.Infrastructure/Modules/LearningModule.cs
xiong 3f5957d744
Some checks failed
ci / release-gate (push) Has been cancelled
feat(content): establish v2 learning delivery foundation
2026-08-06 09:52:18 +08:00

31 lines
1.7 KiB
C#

using Microsoft.Extensions.DependencyInjection;
using Tiku.Application.Learning;
using Tiku.Infrastructure.Learning;
namespace Tiku.Infrastructure;
internal static class LearningModule
{
internal static IServiceCollection AddLearningModule(this IServiceCollection services)
{
services.AddScoped<LearningServiceDependencies>();
services.AddScoped<ILearningAccessService, LearningAccessService>();
services.AddScoped<IEffectiveLearningAccessService, EffectiveLearningAccessService>();
services.AddScoped<IStudentLearningTargetService, StudentLearningTargetService>();
services.AddScoped<IV2LearningAccessAdministrationService, V2LearningAccessAdministrationService>();
services.AddScoped<IStudentLearningCatalogService, StudentLearningCatalogService>();
services.AddScoped<IV2PracticeSessionService, V2PracticeSessionService>();
services.AddScoped<ILearningStrongRevocationService, LearningStrongRevocationService>();
services.AddScoped<IPlatformLearningAccessAdministrationService,
PlatformLearningAccessAdministrationService>();
services.AddScoped<ILearningAnalyticsService, LearningAnalyticsService>();
services.AddScoped<IAnsweringService, AnsweringService>();
services.AddScoped<IQuestionReviewService, QuestionReviewService>();
services.AddScoped<IWordLearningService, WordLearningService>();
services.AddScoped<IPracticeSessionService, PracticeSessionService>();
services.AddScoped<IPracticeReportService, PracticeReportService>();
services.AddScoped<ILearningOutboxProcessor, LearningOutboxProcessor>();
return services;
}
}