Пример #1
0
 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));
Пример #2
0
 //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));
Пример #3
0
 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));
Пример #4
0
 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;
 }
Пример #5
0
 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;
 }
Пример #6
0
 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;
 }