示例#1
0
 public StepExecutedEvent(UniqueStepId stepId)
 {
     if (stepId == null)
     {
         throw new ArgumentNullException("stepId");
     }
     _stepId = stepId;
 }
        private BaseStep CreateStepInstance(StepSchema stepSchema, UniqueStepId stepId)
        {
            var stepType     = Type.GetType(stepSchema.Implementation, true);
            var stepInstance = _stepFactory.CreateInstance(stepType, stepId);

            foreach (var publicProperty in stepType.GetProperties())
            {
                object value = null;
                if (AllValueProviders(stepSchema).Any(x => x.TryProvideValue(publicProperty.Name, out value)))
                {
                    publicProperty.SetValue(stepInstance, value);
                }
            }

            return(stepInstance);
        }
示例#3
0
 protected bool Equals(UniqueStepId other)
 {
     return(string.Equals(_stepId, other._stepId) && string.Equals(_activityId, other._activityId) && string.Equals(_stageId, other._stageId) && string.Equals(_pipelineId, other._pipelineId) && string.Equals(_schemaName, other._schemaName));
 }
示例#4
0
 protected BaseStep(UniqueStepId stepId)
 {
     _stepId = stepId;
 }
 public BaseStep CreateInstance(Type stepType, UniqueStepId stepId)
 {
     return((BaseStep)Activator.CreateInstance(stepType, new object[] { stepId }));
 }
示例#6
0
 protected Step(UniqueStepId stepId) : base(stepId)
 {
 }