mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 17:47:22 +00:00
20 lines
674 B
C#
20 lines
674 B
C#
using Features.Auth.Repository;
|
|
using Features.Auth.Services;
|
|
using Infrastructure.PasswordHashing;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Features.Auth.DependencyInjection;
|
|
|
|
/// <summary>
|
|
/// Registers the services owned by the Auth feature slice.
|
|
/// </summary>
|
|
public static class FeaturesAuthServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddFeaturesAuth(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IAuthRepository, AuthRepository>();
|
|
services.AddScoped<ITokenService, TokenService>();
|
|
services.AddScoped<IPasswordInfrastructure, Argon2Infrastructure>();
|
|
return services;
|
|
}
|
|
} |