Files
forkmessager/apps/server-net/src/Shared/Vortex.Shared.Infrastructure/DependencyInjection.cs
2026-03-12 01:48:58 +03:00

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;
}
}