Exemplo n.º 1
0
 public RuleController(
     IRuleFactory ruleFactory,
     IRuleStorage ruleStorage,
     IRuleTemplateSelector ruleTemplateSelector,
     Func <RuleScope, IRuleProvider> ruleProvider,
     IEnumerable <IRuleOptionsProvider> ruleOptionsProviders,
     Lazy <IPaymentService> paymentService,
     Lazy <PluginMediator> pluginMediator,
     Lazy <IMediaService> mediaService,
     AdminAreaSettings adminAreaSettings,
     Lazy <CustomerSettings> customerSettings,
     Lazy <MediaSettings> mediaSettings)
 {
     _ruleFactory          = ruleFactory;
     _ruleStorage          = ruleStorage;
     _ruleTemplateSelector = ruleTemplateSelector;
     _ruleProvider         = ruleProvider;
     _ruleOptionsProviders = ruleOptionsProviders;
     _paymentService       = paymentService;
     _pluginMediator       = pluginMediator;
     _mediaService         = mediaService;
     _adminAreaSettings    = adminAreaSettings;
     _customerSettings     = customerSettings;
     _mediaSettings        = mediaSettings;
 }
Exemplo n.º 2
0
 public RuleController(
     IRuleFactory ruleFactory,
     IRuleStorage ruleStorage,
     ITargetGroupService targetGroupService,
     IRuleTemplateSelector ruleTemplateSelector,
     Func <RuleScope, IRuleProvider> ruleProvider,
     IEnumerable <IRuleOptionsProvider> ruleOptionsProviders,
     AdminAreaSettings adminAreaSettings)
 {
     _ruleFactory          = ruleFactory;
     _ruleStorage          = ruleStorage;
     _targetGroupService   = targetGroupService;
     _ruleTemplateSelector = ruleTemplateSelector;
     _ruleProvider         = ruleProvider;
     _ruleOptionsProviders = ruleOptionsProviders;
     _adminAreaSettings    = adminAreaSettings;
 }