public SettingsActionComponent AddSettings <TSettings>(ICurrentSettingsProvider currentSettingsProvider, Type settingType, Expression <Func <ConversionProfile, TSettings> > getSettingFunction) where TSettings : IProfileSetting
        {
            var settings = new SettingsActionComponent(currentSettingsProvider, settingType);

            settings.Init <TSettings>(getSettingFunction);
            _components.Add(settings);
            return(settings);
        }
Exemplo n.º 2
0
 public RestrictableActionComponent(ActionRestrictionEnum restriction, SettingsActionComponent settingsActionComponent)
 {
     Restriction = restriction;
     _settingsActionComponent = settingsActionComponent;
 }
 public DescriptionActionComponent(IActionFacadeDescriptionHelper actionFacadeDescriptionHelper, SettingsActionComponent settingsActionComponent)
 {
     _actionFacadeDescriptionHelper = actionFacadeDescriptionHelper;
     _settingsActionComponent       = settingsActionComponent;
 }
        public RestrictableActionComponent AddRestrictable(ActionRestrictionEnum restriction, SettingsActionComponent settingsActionComponent)
        {
            var restrictableActionComponent = new RestrictableActionComponent(restriction, settingsActionComponent);

            _components.Add(restrictableActionComponent);
            return(restrictableActionComponent);
        }
        public DescriptionActionComponent AddDescription(IActionFacadeDescriptionHelper actionFacadeDescriptionHelper, SettingsActionComponent settingsActionComponent)
        {
            var descriptionComponent = new DescriptionActionComponent(actionFacadeDescriptionHelper, settingsActionComponent);

            _components.Add(descriptionComponent);
            return(descriptionComponent);
        }