コード例 #1
0
        public RocketApplicationConfigurationAppService(
            IOptions <RocketLocalizationOptions> localizationOptions,
            IOptions <RocketMultiTenancyOptions> multiTenancyOptions,
            IServiceProvider serviceProvider,
            IRocketAuthorizationPolicyProvider rocketAuthorizationPolicyProvider,
            IAuthorizationService authorizationService,
            ISettingProvider settingProvider,
            ISettingDefinitionManager settingDefinitionManager,
            IFeatureDefinitionManager featureDefinitionManager,
            ILanguageProvider languageProvider,
            ICachedObjectExtensionsDtoService cachedObjectExtensionsDtoService,
            IDistributedCache <ApplicationCommonConfigurationCacheItem> commonConfigurationCache,
            IDistributedCache <ApplicationPersonalConfigurationCacheItem> personalConfigurationCache)
        {
            _serviceProvider = serviceProvider;
            _rocketAuthorizationPolicyProvider = rocketAuthorizationPolicyProvider;
            _authorizationService             = authorizationService;
            _settingProvider                  = settingProvider;
            _settingDefinitionManager         = settingDefinitionManager;
            _featureDefinitionManager         = featureDefinitionManager;
            _languageProvider                 = languageProvider;
            _cachedObjectExtensionsDtoService = cachedObjectExtensionsDtoService;
            _localizationOptions              = localizationOptions.Value;
            _multiTenancyOptions              = multiTenancyOptions.Value;

            _commonConfigurationCache   = commonConfigurationCache;
            _personalConfigurationCache = personalConfigurationCache;
        }
コード例 #2
0
 public AbpApplicationConfigurationAppService(
     IOptions <AbpLocalizationOptions> localizationOptions,
     IOptions <AbpMultiTenancyOptions> multiTenancyOptions,
     IServiceProvider serviceProvider,
     IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider,
     IPermissionDefinitionManager permissionDefinitionManager,
     DefaultAuthorizationPolicyProvider defaultAuthorizationPolicyProvider,
     IPermissionChecker permissionChecker,
     IAuthorizationService authorizationService,
     ICurrentUser currentUser,
     ISettingProvider settingProvider,
     ISettingDefinitionManager settingDefinitionManager,
     IFeatureDefinitionManager featureDefinitionManager,
     ILanguageProvider languageProvider,
     ITimezoneProvider timezoneProvider,
     IOptions <AbpClockOptions> abpClockOptions,
     ICachedObjectExtensionsDtoService cachedObjectExtensionsDtoService)
 {
     _serviceProvider = serviceProvider;
     _abpAuthorizationPolicyProvider     = abpAuthorizationPolicyProvider;
     _permissionDefinitionManager        = permissionDefinitionManager;
     _defaultAuthorizationPolicyProvider = defaultAuthorizationPolicyProvider;
     _permissionChecker                = permissionChecker;
     _authorizationService             = authorizationService;
     _currentUser                      = currentUser;
     _settingProvider                  = settingProvider;
     _settingDefinitionManager         = settingDefinitionManager;
     _featureDefinitionManager         = featureDefinitionManager;
     _languageProvider                 = languageProvider;
     _timezoneProvider                 = timezoneProvider;
     _abpClockOptions                  = abpClockOptions.Value;
     _cachedObjectExtensionsDtoService = cachedObjectExtensionsDtoService;
     _localizationOptions              = localizationOptions.Value;
     _multiTenancyOptions              = multiTenancyOptions.Value;
 }
コード例 #3
0
 public FakeFeatureStore(
     IOptions <FakeFeatureOptions> options,
     IFeatureDefinitionManager featureDefinitionManager)
 {
     FakeFeatureOptions       = options.Value;
     FeatureDefinitionManager = featureDefinitionManager;
 }
コード例 #4
0
 public PlusApplicationConfigurationAppService(
     IOptions <PlusLocalizationOptions> localizationOptions,
     IOptions <PlusMultiTenancyOptions> multiTenancyOptions,
     IServiceProvider serviceProvider,
     IPlusAuthorizationPolicyProvider PlusAuthorizationPolicyProvider,
     IAuthorizationService authorizationService,
     ICurrentUser currentUser,
     ISettingProvider settingProvider,
     ISettingDefinitionManager settingDefinitionManager,
     IFeatureDefinitionManager featureDefinitionManager,
     ILanguageProvider languageProvider,
     ITimezoneProvider timezoneProvider,
     IOptions <PlusClockOptions> PlusClockOptions,
     ICachedObjectExtensionsDtoService cachedObjectExtensionsDtoService)
 {
     _serviceProvider = serviceProvider;
     _PlusAuthorizationPolicyProvider = PlusAuthorizationPolicyProvider;
     _authorizationService            = authorizationService;
     _currentUser                      = currentUser;
     _settingProvider                  = settingProvider;
     _settingDefinitionManager         = settingDefinitionManager;
     _featureDefinitionManager         = featureDefinitionManager;
     _languageProvider                 = languageProvider;
     _timezoneProvider                 = timezoneProvider;
     _PlusClockOptions                 = PlusClockOptions.Value;
     _cachedObjectExtensionsDtoService = cachedObjectExtensionsDtoService;
     _localizationOptions              = localizationOptions.Value;
     _multiTenancyOptions              = multiTenancyOptions.Value;
 }
コード例 #5
0
 public FeatureAppService(IFeatureManager featureManager,
                          IFeatureDefinitionManager featureDefinitionManager,
                          IOptions <FeatureManagementOptions> options)
 {
     FeatureManager           = featureManager;
     FeatureDefinitionManager = featureDefinitionManager;
     Options = options.Value;
 }
コード例 #6
0
 public TigerFeatureAppService(
     IFeatureManager featureManager,
     IFeatureDefinitionManager featureDefinitionManager,
     IOptions <FeatureManagementOptions> options,
     IFeatureValueRepository featureValueRepository
     ) : base(featureManager, featureDefinitionManager, options)
 {
     FeatureValueRepository = featureValueRepository;
 }
コード例 #7
0
 public FeatureAppService(IFeatureManager featureManager,
                          IFeatureDefinitionManager featureDefinitionManager,
                          IStringLocalizerFactory stringLocalizerFactory,
                          IOptions <FeatureManagementOptions> options)
 {
     _featureManager           = featureManager;
     _featureDefinitionManager = featureDefinitionManager;
     _stringLocalizerFactory   = stringLocalizerFactory;
     Options = options.Value;
 }
コード例 #8
0
 public FeatureManagementStore(
     IFeatureValueRepository featureValueRepository,
     IGuidGenerator guidGenerator,
     IDistributedCache <FeatureValueCacheItem> cache,
     IFeatureDefinitionManager featureDefinitionManager)
 {
     FeatureValueRepository = featureValueRepository;
     GuidGenerator          = guidGenerator;
     Cache = cache;
     FeatureDefinitionManager = featureDefinitionManager;
 }
 public FeaturesLimitValidationInterceptor(
     IFeatureChecker featureChecker,
     IRequiresLimitFeatureChecker limitFeatureChecker,
     IFeatureDefinitionManager featureDefinitionManager,
     IOptions <AbpFeaturesLimitValidationOptions> options)
 {
     _options                  = options.Value;
     _featureChecker           = featureChecker;
     _limitFeatureChecker      = limitFeatureChecker;
     _featureDefinitionManager = featureDefinitionManager;
 }
コード例 #10
0
        public FeatureChecker(
            IOptions <FeatureOptions> options,
            IServiceProvider serviceProvider,
            IFeatureDefinitionManager featureDefinitionManager)
        {
            FeatureDefinitionManager = featureDefinitionManager;

            Options = options.Value;

            Providers = new Lazy <List <IFeatureValueProvider> >(
                () => Options
                .ValueProviders
                .Select(type => serviceProvider.GetRequiredService(type) as IFeatureValueProvider)
                .ToList(),
                true
                );
        }
コード例 #11
0
        public FeatureManager(
            IOptions <FeatureManagementOptions> options,
            IServiceProvider serviceProvider,
            IFeatureDefinitionManager featureDefinitionManager)
        {
            FeatureDefinitionManager = featureDefinitionManager;
            Options = options.Value;

            //TODO: Instead, use IHybridServiceScopeFactory and create a scope..?

            _lazyProviders = new Lazy <List <IFeatureManagementProvider> >(
                () => Options
                .Providers
                .Select(c => serviceProvider.GetRequiredService(c) as IFeatureManagementProvider)
                .ToList(),
                true
                );
        }
コード例 #12
0
 public AbpApplicationConfigurationAppService(
     IOptions <AbpLocalizationOptions> localizationOptions,
     IServiceProvider serviceProvider,
     IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider,
     IAuthorizationService authorizationService,
     ICurrentUser currentUser,
     ISettingProvider settingProvider,
     SettingDefinitionManager settingDefinitionManager,
     IFeatureDefinitionManager featureDefinitionManager)
 {
     _serviceProvider = serviceProvider;
     _abpAuthorizationPolicyProvider = abpAuthorizationPolicyProvider;
     _authorizationService           = authorizationService;
     _currentUser              = currentUser;
     _settingProvider          = settingProvider;
     _settingDefinitionManager = settingDefinitionManager;
     _featureDefinitionManager = featureDefinitionManager;
     _localizationOptions      = localizationOptions.Value;
 }
コード例 #13
0
 public AbpApplicationConfigurationAppService(
     IOptions <AbpLocalizationOptions> localizationOptions,
     IOptions <AbpMultiTenancyOptions> multiTenancyOptions,
     IServiceProvider serviceProvider,
     ISettingProvider settingProvider,
     ISettingDefinitionManager settingDefinitionManager,
     IFeatureDefinitionManager featureDefinitionManager,
     IPermissionGrantRepository permissionGrantRepository,
     IPermissionDefinitionManager permissionDefinitionManager,
     ILanguageProvider languageProvider,
     ICachedObjectExtensionsDtoService cachedObjectExtensionsDtoService)
 {
     _serviceProvider                  = serviceProvider;
     _settingProvider                  = settingProvider;
     _settingDefinitionManager         = settingDefinitionManager;
     _featureDefinitionManager         = featureDefinitionManager;
     _permissionGrantRepository        = permissionGrantRepository;
     _permissionDefinitionManager      = permissionDefinitionManager;
     _languageProvider                 = languageProvider;
     _cachedObjectExtensionsDtoService = cachedObjectExtensionsDtoService;
     _localizationOptions              = localizationOptions.Value;
     _multiTenancyOptions              = multiTenancyOptions.Value;
 }
コード例 #14
0
 public FeatureDefinitionManager_Tests()
 {
     _featureDefinitionManager = GetRequiredService <IFeatureDefinitionManager>();
 }
コード例 #15
0
 public ConfigurationAppService(IOptions <AbpLocalizationOptions> localizationOptions, IOptions <AbpMultiTenancyOptions> multiTenancyOptions, IServiceProvider serviceProvider, IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider, IAuthorizationService authorizationService, ICurrentUser currentUser, ISettingProvider settingProvider, ISettingDefinitionManager settingDefinitionManager, IFeatureDefinitionManager featureDefinitionManager, ILanguageProvider languageProvider, ITimezoneProvider timezoneProvider, IOptions <AbpClockOptions> abpClockOptions, ICachedObjectExtensionsDtoService cachedObjectExtensionsDtoService) : base(localizationOptions, multiTenancyOptions, serviceProvider, abpAuthorizationPolicyProvider, authorizationService, currentUser, settingProvider, settingDefinitionManager, featureDefinitionManager, languageProvider, timezoneProvider, abpClockOptions, cachedObjectExtensionsDtoService)
 {
 }
コード例 #16
0
 public ConfigurationAppService(IOptions <AbpLocalizationOptions> localizationOptions, IServiceProvider serviceProvider, IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider, IAuthorizationService authorizationService, ICurrentUser currentUser, ISettingProvider settingProvider, SettingDefinitionManager settingDefinitionManager, IFeatureDefinitionManager featureDefinitionManager, ILanguageProvider languageProvider) : base(localizationOptions, serviceProvider, abpAuthorizationPolicyProvider, authorizationService, currentUser, settingProvider, settingDefinitionManager, featureDefinitionManager, languageProvider)
 {
 }