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