public PlayPromptOutcomeEvent(ConversationResult conversationResult, Workflow resultingWorkflow, PlayPromptOutcome outcome) : base(conversationResult, resultingWorkflow) { if (outcome == null) { throw new ArgumentNullException(nameof(outcome)); } PlayPromptOutcome = outcome; }
private Task <Workflow> HandlePlayPromptOutcome(ConversationResult conversationResult, PlayPromptOutcome playPromptOutcome) { var outcomeEvent = new PlayPromptOutcomeEvent(conversationResult, CreateInitialWorkflow(), playPromptOutcome); var eventHandler = OnPlayPromptCompleted; return(InvokeHandlerIfSet(eventHandler, outcomeEvent)); }