finalizare 1.0

This commit is contained in:
andrei-mihnea-cerbu
2024-05-21 12:10:53 +03:00
parent f7795f7519
commit 1cc1d34003
11268 changed files with 2102399 additions and 10909 deletions
+5 -2
View File
@@ -3,7 +3,8 @@ using Application.Services.Database.PostgreSQL;
using Application.Services.Email;
using Application.Services.HashingAlgorithms;
using Application.Services.Jwt;
using Infrastructure.Data;
using Infrastructure.BackgroundServices;
using Infrastructure.Services.Authentication;
using Infrastructure.Services.Email;
using Infrastructure.Services.HashingAlgorithms;
using Infrastructure.Services.MongoDB;
@@ -26,6 +27,7 @@ public static class DependencyInjection
services.AddScoped<IPatientRepository, PatientRepository>();
services.AddScoped<IDoctorRepository, DoctorRepository>();
services.AddScoped<IMedicalHistoryRepository, MedicalHistoryRepository>();
services.AddScoped<IAdminRepository, AdminRepository>();
// MongoDB services
services.AddSingleton<IMedicalHistoryMongoDbService>(serviceProvider =>
@@ -60,7 +62,6 @@ public static class DependencyInjection
// Other Services
services.AddScoped<IHashingAlgorithms, HashingAlgorithms>();
services.AddSingleton<IJwtService, JwtService>(serviceProvider =>
{
var configuration = serviceProvider.GetRequiredService<IConfiguration>();
@@ -69,6 +70,8 @@ public static class DependencyInjection
services.Configure<SmtpSettings>(configuration.GetSection("SmtpSettings"));
services.AddScoped<IEmailService, EmailService>();
services.AddHostedService<AppointmentCleanupService>();
return services;
}