Esempio n. 1
0
 public PluginStepConfig(string logicalName, PluginEventOperation PluginEventOperation, PluginExecutionStage PluginExecutionStage)
 {
     this._LogicalName          = logicalName;
     this._PluginEventOperation = PluginEventOperation.ToString();
     this._PluginExecutionStage = (int)PluginExecutionStage;
     this._PluginDeployment     = (int)PluginDeployment.ServerOnly;
     this._PluginExecutionMode  = (int)PluginExecutionMode.Synchronous;
     this._ExecutionOrder       = 1;
     this._UserContext          = Guid.Empty;
 }
Esempio n. 2
0
        protected PluginStepConfig <Entity> RegisterPluginStep(
            string logicalName, PluginEventOperation PluginEventOperation, PluginExecutionStage PluginExecutionStage, Action <LocalPluginContext> action)
        {
            PluginStepConfig <Entity> stepConfig = new PluginStepConfig <Entity>(logicalName, PluginEventOperation, PluginExecutionStage);

            this.PluginStepConfigs.Add((IPluginStepConfig)stepConfig);

            this.RegisteredEvents.Add(
                new Tuple <int, string, string, Action <LocalPluginContext> >(
                    stepConfig._PluginExecutionStage,
                    stepConfig._PluginEventOperation,
                    stepConfig._LogicalName,
                    new Action <LocalPluginContext>(action)));

            return(stepConfig);
        }