Esempio n. 1
0
 public AccountController(
     UserManager userManager,
     IEventService events,
     IIdentityServerInteractionService interaction,
     IdentitySignInManager signInManager,
     IdentityUserManager identityUserManager,
     MessageSenderManager messageSenderManager,
     ReturnUrlConfiguration returnUrlConfiguration,
     ILocalizationService localization,
     NonceManager nonceManager,
     DynamicModuleProvider dynamicModuleProvider,
     FeatureFlagsManager featureFlagsManager
     )
 {
     m_userManager            = userManager;
     m_events                 = events;
     m_interaction            = interaction;
     m_signInManager          = signInManager;
     m_identityUserManager    = identityUserManager;
     m_messageSenderManager   = messageSenderManager;
     m_returnUrlConfiguration = returnUrlConfiguration;
     m_localization           = localization;
     m_nonceManager           = nonceManager;
     m_dynamicModuleProvider  = dynamicModuleProvider;
     m_featureFlagsManager    = featureFlagsManager;
 }
 public GenericDynamicModuleController(
     DynamicModuleManager dynamicModuleManager,
     DynamicModuleProvider dynamicModuleProvider
     )
 {
     m_dynamicModuleManager  = dynamicModuleManager;
     m_dynamicModuleProvider = dynamicModuleProvider;
 }
Esempio n. 3
0
 public DynamicModuleExternalLoginSynchronization(
     DynamicModuleProvider dynamicModuleProvider,
     DynamicModuleManager dynamicModuleManager,
     ExternalLoginProviderManager externalLoginProviderManager,
     DataSourceManager dataSourceManager
     )
 {
     m_dynamicModuleProvider        = dynamicModuleProvider;
     m_dynamicModuleManager         = dynamicModuleManager;
     m_externalLoginProviderManager = externalLoginProviderManager;
     m_dataSourceManager            = dataSourceManager;
 }
Esempio n. 4
0
 public static void LoadDynamicControllers(
     this IMvcCoreBuilder mvcBuilder,
     DynamicModuleProvider dynamicModuleProvider
     )
 {
     mvcBuilder.ConfigureApplicationPartManager(p =>
                                                p.FeatureProviders.Add(
                                                    new DynamicModuleControllerFeatureProvider(
                                                        dynamicModuleProvider.ModuleContexts.GroupBy(x => x.LibModuleInfo.ModuleGuid).Select(x => x.First()).ToList()
                                                        )
                                                    )
                                                );
 }
 public DynamicModuleConfigurationManager(
     IHostingEnvironment hostingEnvironment,
     LiveManager liveManager,
     DynamicModuleManager dynamicModuleManager,
     DynamicModuleProvider dynamicModuleProvider,
     DynamicModuleConfiguration dynamicModuleConfiguration
     )
 {
     m_contentRootPath            = hostingEnvironment.ContentRootPath;
     m_liveManager                = liveManager;
     m_dynamicModuleManager       = dynamicModuleManager;
     m_dynamicModuleProvider      = dynamicModuleProvider;
     m_dynamicModuleConfiguration = dynamicModuleConfiguration;
 }
 public DynamicModuleController(
     DynamicModuleManager dynamicModuleManager,
     DynamicModuleConfiguration dynamicModuleConfiguration,
     DynamicModuleProvider dynamicModuleProvider,
     DynamicModuleConfigurationManager dynamicConfigurationManager,
     IMapper mapper
     )
 {
     m_dynamicModuleManager        = dynamicModuleManager;
     m_dynamicModuleConfiguration  = dynamicModuleConfiguration;
     m_dynamicModuleProvider       = dynamicModuleProvider;
     m_dynamicConfigurationManager = dynamicConfigurationManager;
     m_mapper = mapper;
 }
Esempio n. 7
0
 public ViewModelBuilder(
     IViewModelFactory viewModelFactory,
     UserManager userManager,
     RoleManager roleManager,
     ClaimTypeManager claimTypeManager,
     PermissionManager permissionManager,
     ResourcePermissionManager resourcePermissionManager,
     ApiResourceManager apiResourceManager,
     ResourcePermissionTypeActionManager resourcePermissionTypeActionManager,
     ClientManager clientManager,
     IdentityResourceManager identityResourceManager,
     GrantTypeManager grantTypeManager,
     IdentityUserManager identityUserManager,
     ResourcePermissionTypeManager resourcePermissionTypeManager,
     DynamicModuleManager dynamicModuleManager,
     DynamicModuleProvider dynamicModuleProvider,
     IFileResourceManager fileResourceManager,
     IMapper mapper,
     IModuleLocalization moduleLocalization,
     HashManager hashManager,
     ScopeManager scopesManager)
 {
     m_viewModelFactory                    = viewModelFactory;
     m_userManager                         = userManager;
     m_roleManager                         = roleManager;
     m_claimTypeManager                    = claimTypeManager;
     m_permissionManager                   = permissionManager;
     m_resourcePermissionManager           = resourcePermissionManager;
     m_resourcePermissionTypeActionManager = resourcePermissionTypeActionManager;
     m_apiResourceManager                  = apiResourceManager;
     m_clientManager                       = clientManager;
     m_identityResourceManager             = identityResourceManager;
     m_grantTypeManager                    = grantTypeManager;
     m_identityUserManager                 = identityUserManager;
     m_resourcePermissionTypeManager       = resourcePermissionTypeManager;
     m_dynamicModuleManager                = dynamicModuleManager;
     m_dynamicModuleProvider               = dynamicModuleProvider;
     m_fileResourceManager                 = fileResourceManager;
     m_mapper             = mapper;
     m_moduleLocalization = moduleLocalization;
     this.m_hashManager   = hashManager;
     m_scopesManager      = scopesManager;
 }
Esempio n. 8
0
        public static DynamicModuleProvider LoadModules(
            this IServiceCollection services,
            IConfiguration configuration,
            IHostingEnvironment hostingEnvironment,
            ILoggerFactory loggerFactory
            )
        {
            var configurationSection = configuration.GetSection("Modules");

            var moduleAssemblies = GetAssemblies(configurationSection, loggerFactory);

            var modules = services.RegisterModules(moduleAssemblies);

            services.InitialiseModules(modules, hostingEnvironment.EnvironmentName, loggerFactory);

            var dynamicModuleProvider = new DynamicModuleProvider(modules);

            services.AddSingleton(dynamicModuleProvider);
            services.AddSingleton <IModuleLocalization, DynamicModuleLocalization>();

            return(dynamicModuleProvider);
        }
Esempio n. 9
0
 public ExternalLoginProviderHydrator(DynamicModuleProvider dynamicModuleProvider)
 {
     m_dynamicModuleProvider = dynamicModuleProvider;
 }