PlayerManagement/Application/ApplicationDependencyInjection.cs
Tomasi - Developing a8a032c1d7 ..
2024-10-10 07:43:07 +02:00

28 lines
1.1 KiB
C#

using System.Reflection;
using Application.Interfaces;
using Application.Repositories;
using Application.Services;
using Microsoft.Extensions.DependencyInjection;
namespace Application;
public static class ApplicationDependencyInjection
{
public static IServiceCollection AddApplication(this IServiceCollection services)
{
services.AddAutoMapper(Assembly.GetExecutingAssembly());
services.AddScoped<IAllianceRepository, AllianceRepository>();
services.AddScoped<IAdmonitionRepository, AdmonitionRepository>();
services.AddScoped<IDesertStormRepository, DesertStormRepository>();
services.AddScoped<IMarshalGuardRepository, MarshalGuardRepository>();
services.AddScoped<INoteRepository, NoteRepository>();
services.AddScoped<IPlayerRepository, PlayerRepository>();
services.AddScoped<IVsDuelRepository, VsDuelRepository>();
services.AddScoped<IAuthenticationRepository, AuthenticationRepository>();
services.AddTransient<IJwtService, JwtService>();
return services;
}
}