protected void RegisterEventOnAllEntities(EventOperation eventOperation, ExecutionStage executionStage, Action <LocalPluginContext> action) => RegisteredEvents.Add( new Tuple <int, string, string, Action <LocalPluginContext> >( (int)executionStage, eventOperation.ToString(), null, action));
//Used for late bound protected void RegisterEvent(string entityLogicalName, EventOperation eventOperation, ExecutionStage executionStage, Action <LocalPluginContext> action) => RegisteredEvents.Add( new Tuple <int, string, string, Action <LocalPluginContext> >( (int)executionStage, eventOperation.ToString(), entityLogicalName, action));
protected void RegisterEvent <T>(EventOperation eventOperation, ExecutionStage executionStage, Action <LocalPluginContext> action) where T : Entity => RegisteredEvents.Add( new Tuple <int, string, string, Action <LocalPluginContext> >( (int)executionStage, eventOperation.ToString(), Activator.CreateInstance <T>().LogicalName, action));
public PluginStepConfig(EventOperation eventOperation, ExecutionStage executionStage) { this.LogicalName = Activator.CreateInstance <T>().LogicalName; this.EventOperation = eventOperation.ToString(); this.ExecutionStage = (int)executionStage; this.Deployment = (int)Plugins.Deployment.ServerOnly; this.ExecutionMode = (int)Plugins.ExecutionMode.Synchronous; this.ExecutionOrder = 1; }
public PluginStepConfig(EventOperation eventOperation, ExecutionStage executionStage) { this._LogicalName = Activator.CreateInstance <T>().LogicalName; this._EventOperation = eventOperation.ToString(); this._ExecutionStage = (int)executionStage; this._Deployment = (int)Deployment.ServerOnly; this._ExecutionMode = (int)ExecutionMode.Synchronous; this._ExecutionOrder = 1; this._UserContext = Guid.Empty; }
public PluginStepConfig(string entityLogicalName, EventOperation eventOperation, ExecutionStage executionStage) { this._LogicalName = entityLogicalName; this._EventOperation = eventOperation.ToString(); this._ExecutionStage = (int)executionStage; this._Deployment = (int)Deployment.ServerOnly; this._ExecutionMode = (int)ExecutionMode.Synchronous; this._ExecutionOrder = 1; this._UserContext = Guid.Empty; }