using Autofac; namespace APT.UT.WebApi.App_Start { public static class DIConfig { public static void RegisterComponents(this ContainerBuilder builder) { APT.Utility.BaseServiceRegister.RegisterComponents(builder); builder.RegisterMesService(); builder.RegisterBaseService(); } private static void RegisterBaseService(this ContainerBuilder builder) { //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); } private static void RegisterMesService(this ContainerBuilder builder) { //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); //builder.RegisterType().As().InstancePerLifetimeScope(); } } }