PresenceApp/presence_api/ServiceExtencions/ServiceExtensions.cs

18 lines
595 B
C#
Raw Permalink Normal View History

2024-12-01 16:16:14 +00:00
using data.Domain.UseCase;
using data.Repository;
public class ServiceExtencions
{
public void ConfigureServices(IServiceCollection services)
{
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
services.AddScoped<IUserRepository, SQLUserRepositoryImpl>() // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> IUserRepository <20> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>()
.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
2024-12-04 23:32:04 +00:00
.AddScoped<PresenceService>(); // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> UseCase
2024-12-01 16:16:14 +00:00
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
services.AddControllers();
}
}