13 lines
327 B
C#
13 lines
327 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace zero.Applications;
|
|
|
|
internal class ContextModule : ZeroModule
|
|
{
|
|
/// <inheritdoc />
|
|
public override void Register(IZeroModuleConfiguration config)
|
|
{
|
|
config.Services.AddScoped<IZeroContext, ZeroContext>();
|
|
config.Services.AddHttpContextAccessor();
|
|
}
|
|
} |