private RealTimeMediaWorkflow CreateInitialWorkflow()
        {
            var workflow = new RealTimeMediaWorkflow();

            workflow.Links    = GetCallbackLink();
            workflow.Actions  = new List <ActionBase>();
            workflow.AppState = CallLegId;
            workflow.NotificationSubscriptions = new List <NotificationType>()
            {
                NotificationType.CallStateChange
            };
            return(workflow);
        }
Example #2
0
 /// <summary>
 /// EventArg for the OnWorkflowValidationFailed event raised on <see cref="IRealTimeMediaCallService"/>.
 /// </summary>
 /// <param name="conversationResult">ConversationResult corresponding to the event</param>
 /// <param name="resultingWorkflow">Workflow to be returned on completion</param>
 /// <param name="outcome">outcome of the operation</param>
 public RealTimeMediaWorkflowValidationOutcomeEvent(
     ConversationResult conversationResult,
     RealTimeMediaWorkflow resultingWorkflow,
     WorkflowValidationOutcome outcome) : base(conversationResult, resultingWorkflow, outcome)
 {
 }
Example #3
0
 /// <summary>
 /// EventArg for the RealTimeMediaIncomingCallEvent event raised on <see cref="IRealTimeMediaCallService"/>.
 /// </summary>
 /// <param name="conversation">Conversation for the incoming call</param>
 /// <param name="resultingWorkflow">Workflow to be returned on completion</param>
 public RealTimeMediaIncomingCallEvent(Conversation conversation, RealTimeMediaWorkflow resultingWorkflow) : base(conversation, resultingWorkflow)
 {
 }
Example #4
0
 /// <summary>
 /// EventArg for the OnAnswerAppHostedMediaCompleted event raised on <see cref="IRealTimeMediaCallService"/>.
 /// </summary>
 /// <param name="conversationResult">ConversationResult corresponding to the event</param>
 /// <param name="resultingWorkflow">Workflow to be returned on completion</param>
 /// <param name="outcome">outcome of the operation</param>
 public AnswerAppHostedMediaOutcomeEvent(ConversationResult conversationResult, RealTimeMediaWorkflow resultingWorkflow, AnswerAppHostedMediaOutcome outcome) : base(conversationResult, resultingWorkflow)
 {
     if (outcome == null)
     {
         throw new ArgumentNullException(nameof(outcome));
     }
     AnswerAppHostedMediaOutcome = outcome;
 }