Template
17 lines
535 B
C#
17 lines
535 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using RT.Application.Services.Contract;
|
|
using RT.Application.Services.Implementation;
|
|
|
|
namespace RT.Application;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
{
|
|
services.AddAutoMapper(cfg => cfg.AddMaps(typeof(DependencyInjection).Assembly));
|
|
services.AddScoped<IAuthService, AuthService>();
|
|
services.AddScoped<ITokenService, TokenService>();
|
|
return services;
|
|
}
|
|
}
|