Files
tiku-backend.net/Tiku.Infrastructure/Modules/LearningModule.cs

26 lines
1.2 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<ILearningAccessAdministrationService, LearningAccessAdministrationService>();
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;
}
}