16 lines
403 B
C#
16 lines
403 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Vortex.Shared.Kernel;
|
|
|
|
namespace Vortex.Shared.Infrastructure;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddSharedInfrastructure(this IServiceCollection services)
|
|
{
|
|
services.AddHttpContextAccessor();
|
|
services.AddScoped<IUserContext, UserContext>();
|
|
|
|
return services;
|
|
}
|
|
}
|