Esempio n. 1
0
        private static List <Type> GetCommonGenericTypes()
        {
            var genericTypes = CommonServiceResolver.GetControllerGenericTypes();

            genericTypes.AddRange(AccountServiceResolver.GetCommonGenericTypes());
            return(genericTypes);
        }
Esempio n. 2
0
        // ConfigureContainer is where you can register things directly
        // with Autofac. This runs after ConfigureServices so the things
        // here will override registrations made in ConfigureServices.
        // Don't build the container; that gets done for you by the factory.
        public void ConfigureContainer(ContainerBuilder builder)
        {
            // Register your own things directly with Autofac here. Don't
            // call builder.Populate(), that happens in AutofacServiceProviderFactory
            // for you.

            IModelBuilder modelBuilder = new ModelBuilder();

            builder.RegisterInstance(modelBuilder);
            AccountServiceResolver.RegisterAccountServices(builder, modelBuilder);
            SecurityServiceResolver.RegisterSecurityServices(builder, modelBuilder);
            CommonServiceResolver.RegisterCommonServices(builder, modelBuilder);
            InfrastructureServiceResolver.RegisterInfrastructureServices(builder);
        }
Esempio n. 3
0
 private static List <Type> GetTenantGenericTypes()
 {
     return(AccountServiceResolver.GetTenantGenericTypes());
 }