/// <summary> /// Adds a step to the commission or decomission phases. /// </summary> /// <param name="type"></param> /// <param name="stepImplementation"></param> public void Add(LifecycleStepType type, object stepImplementation) { if (stepImplementation == null) { throw new ArgumentNullException("stepImplementation"); } if (type == LifecycleStepType.Commission) { commissionSteps.Add(stepImplementation); } else { decommissionSteps.Add(stepImplementation); } }
/// <summary> /// Adds a step to the commission or decomission phases. /// </summary> /// <param name="type"></param> /// <param name="stepImplementation"></param> public void Add(LifecycleStepType type, object stepImplementation) { if (stepImplementation == null) throw new ArgumentNullException("stepImplementation"); if (type == LifecycleStepType.Commission) { commissionSteps.Add(stepImplementation); } else { decommissionSteps.Add(stepImplementation); } }