public PluginStepImage(string name, string entityAlias, ImageType imageType, Expression <Func <T, object> >[] attributes) { this.Name = name; this.EntityAlias = entityAlias; this.ImageType = (int)imageType; if (attributes != null && attributes.Length > 0) { this.Attributes = string.Join(",", attributes.Select(x => PluginStepConfig <T> .GetMemberName(x))).ToLower(); } else { this.Attributes = null; } }
protected PluginStepConfig RegisterPluginStep(string logicalName, EventOperation eventOperation, ExecutionStage executionStage, Action <LocalPluginContext> action) { PluginStepConfig stepConfig = new PluginStepConfig(logicalName, eventOperation, executionStage); this.PluginStepConfigs.Add((IPluginStepConfig)stepConfig); this.RegisteredEvents.Add( new Tuple <int, string, string, Action <LocalPluginContext> >( stepConfig._ExecutionStage, stepConfig._EventOperation, stepConfig._LogicalName, new Action <LocalPluginContext>(action))); return(stepConfig); }