public void OnDeserialized(StreamingContext context)
 {
     if (ActivityPacing == null)
     {
         ActivityPacing = new ActivitySpecificPacing();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Equal Comparator
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(ActivitySpecificPacing other)
 {
     return(Enabled == other.Enabled &&
            MinDelay == other.MinDelay &&
            MaxDelay == other.MaxDelay &&
            Randomize == other.Randomize &&
            DelayOnRepeat == other.DelayOnRepeat);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WorkerExecutionPlan"/> class.
 /// </summary>
 public WorkerExecutionPlan()
 {
     Order                 = 1;
     Value                 = 1;
     Mode                  = ExecutionMode.Iteration;
     Phase                 = ResourceExecutionPhase.Main;
     ActivityPacing        = new ActivitySpecificPacing();
     _exceptionDefinitions = new Collection <PluginRetrySetting>();
 }