Exemplo n.º 1
0
 public AnswerOutcomeEvent(ConversationResult conversationResult, Workflow resultingWorkflow, AnswerOutcome outcome) : base(conversationResult, resultingWorkflow)
 {
     if (outcome == null)
     {
         throw new ArgumentNullException(nameof(outcome));
     }
     AnswerOutcome = outcome;
 }
Exemplo n.º 2
0
        private Task <Workflow> HandleAnswerOutcome(ConversationResult conversationResult, AnswerOutcome answerOutcome)
        {
            var outcomeEvent = new AnswerOutcomeEvent(conversationResult, CreateInitialWorkflow(), answerOutcome);
            var eventHandler = OnAnswerCompleted;

            return(InvokeHandlerIfSet(eventHandler, outcomeEvent));
        }