示例#1
0
        /// <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);
            }
        }
示例#2
0
        /// <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);
            }
        }