presence/presence_api/ServiceExtensions/ServiceExtensions.cs

23 lines
710 B
C#
Raw Normal View History

2024-11-08 17:42:34 +00:00
using Demo.Data.Repository;
using Demo.Domain.UseCase;
public static class ServiceExtencions
{
2024-11-29 07:41:36 +00:00
public static void AddGroupServices(this IServiceCollection services)
2024-11-08 17:42:34 +00:00
{
services.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>()
2024-11-29 07:41:36 +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 17:42:34 +00:00
.AddScoped<PresenceUseCase>();
}
}