Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (16 sloc) 573 Bytes
using Autofac;
using Web.Api.Core.Interfaces.Gateways.Repositories;
using Web.Api.Core.Interfaces.Services;
using Web.Api.Infrastructure.Auth;
using Web.Api.Infrastructure.Data.EntityFramework.Repositories;
namespace Web.Api.Infrastructure
{
public class InfrastructureModule : Module
{
protected override void Load(ContainerBuilder builder)
{
builder.RegisterType<UserRepository>().As<IUserRepository>().InstancePerLifetimeScope();
builder.RegisterType<JwtFactory>().As<IJwtFactory>().SingleInstance();
}
}
}
You can’t perform that action at this time.