13 lines
368 B
C#
13 lines
368 B
C#
|
|
using Microsoft.Extensions.Configuration;
|
||
|
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
|
|
||
|
|
namespace zero.Context;
|
||
|
|
|
||
|
|
internal class ZeroContextModule : ZeroModule
|
||
|
|
{
|
||
|
|
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
|
||
|
|
{
|
||
|
|
services.AddScoped<IZeroContext, ZeroContext>();
|
||
|
|
services.AddHttpContextAccessor();
|
||
|
|
}
|
||
|
|
}
|