using Autofac; using Microsoft.AspNetCore.Identity; using MS.Microservice.Domain.Aggregates.IdentityModel; using MS.Microservice.Domain.Identity.Token; using MS.Microservice.Web.Application.Identity; using MS.Microservice.Web.Application.Identity.Token; namespace MS.Microservice.Web.AutofacModules; public class IdentityApplicationModule : Module { protected override void Load(ContainerBuilder builder) { builder.RegisterType>() .As>() .SingleInstance(); builder.RegisterType() .As() .InstancePerLifetimeScope(); builder.RegisterType() .As() .InstancePerLifetimeScope(); builder.RegisterType() .AsSelf() .InstancePerDependency(); } }