Example #1
0
        public static RegisterOrReplaceStep Create(string stepId, Type behaviorType, string description = null, Func <IServiceProvider, IBehavior> factoryMethod = null)
        {
            var register = RegisterStep.Create(stepId, behaviorType, description, factoryMethod);
            var replace  = new ReplaceStep(stepId, behaviorType, description, factoryMethod);

            return(new RegisterOrReplaceStep(stepId, register, replace));
        }
Example #2
0
 RegisterOrReplaceStep(string stepId, RegisterStep registerStep, ReplaceStep replaceStep)
 {
     StepId       = stepId;
     RegisterStep = registerStep;
     ReplaceStep  = replaceStep;
 }