// Все шаги главной ветки, начиная с первого private List <IBusinessLogicChainStepInvoker> GetStepsOfMainProcess() { IBusinessLogicChainStepInvoker currentStep = this; var chainSteps = new List <IBusinessLogicChainStepInvoker>(); while (currentStep != null) { chainSteps.Add(currentStep); currentStep = currentStep.PreviosBusinessLogicChainStep; } chainSteps.Reverse(); return(chainSteps); }
/// <summary> /// создание экзепляра на действие Then /// </summary> /// <param name="previosChainStep"></param> internal BusinessLogicChainStep(IBusinessLogicChainStepInvoker previosChainStep, object request) { _previosBusinessLogicChainStep = previosChainStep; Request = request; }