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

            return(InvokeHandlerIfSet(eventHandler, outcomeEvent));
        }