示例#1
0
        public DecisionFlowStep <TSwitch, TFlowRequest, TFlowResponse> Check <TReq, TSwitch>(string stepName, string stepText, FlowOverrideKey flowOverrideKey,
                                                                                             FlowDecisionDefinition <TReq, TSwitch> definition) where TReq : FlowDecision <TSwitch>
        {
            var decisionFlowStep =
                new DecisionFlowStep <TSwitch, TFlowRequest, TFlowResponse>(this)
            {
                Name = stepName, Definition = definition, Text = stepText, OverrideKey = flowOverrideKey
            };

            AddStep(decisionFlowStep);

            return(decisionFlowStep);
        }
示例#2
0
 public DecisionFlowStep <TSwitch, TFlowRequest, TFlowResponse> Check <TReq, TSwitch>(string stepName, FlowOverrideKey flowOverrideKey,
                                                                                      FlowDecisionDefinition <TReq, TSwitch> definition) where TReq : FlowDecision <TSwitch>
 {
     return(Check(stepName, stepText: null, flowOverrideKey, definition));
 }