Newer
Older
Warehouse / src / WebApi / Authentication / AuthenticationStartup.cs
@Derek Comartin Derek Comartin on 22 Aug 2023 466 bytes Init
using MyWarehouse.Application.Dependencies.Services;
using MyWarehouse.WebApi.Authentication.Services;
using System.Diagnostics.CodeAnalysis;

namespace MyWarehouse.WebApi.Authentication;

[ExcludeFromCodeCoverage]
internal static class AuthenticationStartup
{
    public static void AddMyApiAuthDeps(this IServiceCollection services)
    {
        services.AddHttpContextAccessor();
        services.AddScoped<ICurrentUserService, CurrentUserService>();
    }
}