public AnswerOutcomeEvent(ConversationResult conversationResult, Workflow resultingWorkflow, AnswerOutcome outcome) : base(conversationResult, resultingWorkflow) { if (outcome == null) { throw new ArgumentNullException(nameof(outcome)); } AnswerOutcome = outcome; }
private Task <Workflow> HandleAnswerOutcome(ConversationResult conversationResult, AnswerOutcome answerOutcome) { var outcomeEvent = new AnswerOutcomeEvent(conversationResult, CreateInitialWorkflow(), answerOutcome); var eventHandler = OnAnswerCompleted; return(InvokeHandlerIfSet(eventHandler, outcomeEvent)); }