2024-11-08 06:16:20 +00:00
|
|
|
using Demo.Data.Repository;
|
|
|
|
using Demo.Domain.UseCase;
|
|
|
|
|
|
|
|
public static class ServiceExtencions
|
|
|
|
{
|
|
|
|
public static void ConfigurateGroup(this IServiceCollection services)
|
|
|
|
{
|
|
|
|
services.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>()
|
|
|
|
.AddScoped<IUserRepository, SQLUserRepositoryImpl>()
|
2024-11-08 13:14:43 +00:00
|
|
|
.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
|
|
|
|
.AddScoped<GroupUseCase>()
|
|
|
|
.AddScoped<UserUseCase>()
|
|
|
|
.AddScoped<PresenceUseCase>();
|
2024-11-08 06:16:20 +00:00
|
|
|
}
|
|
|
|
}
|