Beispiel #1
0
 public static void RegisterUiMetadata(this DependencyInjectionContainer dependencyInjectionContainer, Assembly assembly)
 {
     dependencyInjectionContainer.GetInstance <ActionRegister>().RegisterAssembly(assembly);
     dependencyInjectionContainer.GetInstance <MetadataBinder>().RegisterAssembly(assembly);
     dependencyInjectionContainer.GetInstance <FormRegister>().RegisterAssembly(assembly);
     dependencyInjectionContainer.GetInstance <MenuRegister>().RegisterAssembly(assembly);
     dependencyInjectionContainer.GetInstance <EntitySecurityConfigurationRegister>().RegisterAssembly(assembly);
     dependencyInjectionContainer.GetInstance <UserRoleCheckerRegister>().RegisterAssembly(assembly);
     dependencyInjectionContainer.GetInstance <EventManager>().RegisterAssembly(assembly);
     dependencyInjectionContainer.GetInstance <ObjectSecurityConfigurationRegister>().RegisterAssembly(assembly);
     dependencyInjectionContainer.GetInstance <EmailTemplateRegister>().RegisterAssembly(assembly);
 }
Beispiel #2
0
        public static void RegisterUiMetadata(this DependencyInjectionContainer dependencyInjectionContainer, Assembly assembly)
        {
            var actionRegister = dependencyInjectionContainer.GetInstance <ActionRegister>();

            actionRegister.RegisterAssembly(assembly);

            var metadataBinder = dependencyInjectionContainer.GetInstance <MetadataBinder>();

            metadataBinder.RegisterAssembly(assembly);

            var formRegistry = dependencyInjectionContainer.GetInstance <FormRegister>();

            formRegistry.RegisterAssembly(assembly);

            var menuRegister = dependencyInjectionContainer.GetInstance <MenuRegister>();

            menuRegister.RegisterAssembly(assembly);

            var securityMapRegister = dependencyInjectionContainer.GetInstance <EntitySecurityConfigurationRegister>();

            securityMapRegister.RegisterAssembly(assembly);

            var handlerSecurityRegister = dependencyInjectionContainer.GetInstance <RequestHandlerGuardRegister>();

            handlerSecurityRegister.RegisterAssembly(assembly);

            var userRoleCheckerRegister = dependencyInjectionContainer.GetInstance <UserRoleCheckerRegister>();

            userRoleCheckerRegister.RegisterAssembly(assembly);
        }