コード例 #1
0
        public Task <string> ProcessCommand(CancelOrderFlowContext context, IFlowCommand command)
        {
            return(command switch
            {
                SubmitCancelOrderCommand submitCommand => DoProcessing(context, submitCommand),

                _ => throw new UnsupportedCommandException(),
            });
コード例 #2
0
 public Task <IActionResult> SubmitOrderCancelation(string flowState, SubmitCancelOrderCommand command)
 {
     return(ProcessCommand(flowState, command));
 }