Beispiel #1
0
        // Flow created indicates that there is a flow present to begin media
        // operations with, and that it is no longer null.
        public void InstantMessagingCall_FlowConfigurationRequested(object sender,
                                                                    InstantMessagingFlowConfigurationRequestedEventArgs e)
        {
            NonBlockingConsole.WriteLine("IM Flow Configuration Requested.");
            _instantMessagingFlow = e.Flow;

            Message m = new Message("IM Flow Configuration Requested.",
                                    MessageType.InstantMessage,
                                    _transcriptRecorder.Conversation.Id);

            _transcriptRecorder.OnMessageReceived(m);

            // Now that the flow is non-null, bind the event handlers for State
            // Changed and Message Received. When the flow goes active,
            // (as indicated by the state changed event) the program will send
            // the IM in the event handler.
            _instantMessagingFlow.StateChanged += new EventHandler <MediaFlowStateChangedEventArgs>(this.InstantMessagingFlow_StateChanged);

            // Message Received is the event used to indicate that a message has
            // been received from the far end.
            _instantMessagingFlow.MessageReceived += new EventHandler <InstantMessageReceivedEventArgs>(this.InstantMessagingFlow_MessageReceived);

            // call top level event handler
            if (_imFlowConfigurationRequestedEventHandler != null)
            {
                _imFlowConfigurationRequestedEventHandler(sender, e);
            }
        }
Beispiel #2
0
        // Flow created indicates that there is a flow present to begin media
        // operations with, and that it is no longer null.
        public void instantMessagingCall2_InstantMessagingFlowConfigurationRequested(
            object sender, InstantMessagingFlowConfigurationRequestedEventArgs e)
        {
            InstantMessagingFlow instantMessagingFlow = sender as InstantMessagingFlow;

            Console.WriteLine("Callee's Flow Created.");
            instantMessagingFlow = e.Flow;
            _IMFlow2             = instantMessagingFlow;

            // Now that the flow is non-null, bind the event handlers for State
            // Changed and Message Received. When the flow goes active, the
            // program will send the IM in the event handler.
            instantMessagingFlow.StateChanged += this.instantMessagingFlow2_StateChanged;

            // Message Received is the event used to indicate that a message
            // from the far end has been received.
            instantMessagingFlow.MessageReceived += this.instantMessagingFlow2_MessageReceived;
        }
Beispiel #3
0
        // Flow created indicates that there is a flow present to begin media
        // operations with, and that it is no longer null.
        public void InstantMessagingCall_FlowConfigurationRequested(object sender,
                                                                    InstantMessagingFlowConfigurationRequestedEventArgs e)
        {
            Console.WriteLine("Flow Created.");
            _instantMessagingFlow = e.Flow;

            // Now that the flow is non-null, bind the event handlers for State
            // Changed and Message Received. When the flow goes active,
            // (as indicated by the state changed event) the program will send
            // the IM in the event handler.
            _instantMessagingFlow.StateChanged += this.InstantMessagingFlow_StateChanged;

            // Message Received is the event used to indicate that a message has
            // been received from the far end.
            _instantMessagingFlow.MessageReceived += this.InstantMessagingFlow_MessageReceived;

            // Also, here is a good place to bind to the
            // InstantMessagingFlow.RemoteComposingStateChanged event to receive
            // typing notifications of the far end user.
            _instantMessagingFlow.RemoteComposingStateChanged +=
                this.InstantMessagingFlow_RemoteComposingStateChanged;
        }
 private void Call_InstantMessagingFlowConfigurationRequested(object sender, InstantMessagingFlowConfigurationRequestedEventArgs e)
 {
     _flow = e.Flow;
     e.Flow.StateChanged += Flow_StateChanged;
     e.Flow.MessageReceived += Flow_MessageReceived;
 }
Beispiel #5
0
 private void InstantMessage_InstantMessagingFlowConfigurationRequested(object sender, InstantMessagingFlowConfigurationRequestedEventArgs e)
 {
     this.InstantMessagingCall.InstantMessagingFlowConfigurationRequested -= this.InstantMessage_InstantMessagingFlowConfigurationRequested;
     InstantMessagingCall.Flow.StateChanged += new EventHandler <MediaFlowStateChangedEventArgs>(this.Flow_StateChanged);
 }
Beispiel #6
0
 private void _call_InstantMessagingFlowConfigurationRequested(object sender, InstantMessagingFlowConfigurationRequestedEventArgs e)
 {
     _imFlow = e.Flow;
 }
 //Handler for the InstantMessagingCall.InstantMessagingFlowConfigurationRequested event.
 void ImCall_InstantMessagingFlowConfigurationRequested(object sender, InstantMessagingFlowConfigurationRequestedEventArgs e)
 {
     ImFlow = e.Flow;
     ImFlow.StateChanged += new EventHandler <MediaFlowStateChangedEventArgs>(ImFlow_StateChanged);
 }
Beispiel #8
0
 /// <summary>
 /// IM Flow configuration requested event handler.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void InstantMessagingFlowConfigurationRequested(object sender, InstantMessagingFlowConfigurationRequestedEventArgs e)
 {
     this.RegisterIMflowEventHandlers(e.Flow);
 }
        // Flow created indicates that there is a flow present to begin media 
        // operations with, and that it is no longer null.
        public void InstantMessagingCall_FlowConfigurationRequested(object sender,
            InstantMessagingFlowConfigurationRequestedEventArgs e)
        {
            NonBlockingConsole.WriteLine("IM Flow Configuration Requested.");
            _instantMessagingFlow = e.Flow;

            Message m = new Message("IM Flow Configuration Requested.",
                MessageType.InstantMessage,
                _transcriptRecorder.Conversation.Id);
            _transcriptRecorder.OnMessageReceived(m);

            // Now that the flow is non-null, bind the event handlers for State 
            // Changed and Message Received. When the flow goes active, 
            // (as indicated by the state changed event) the program will send 
            // the IM in the event handler.
            _instantMessagingFlow.StateChanged += new EventHandler<MediaFlowStateChangedEventArgs>(this.InstantMessagingFlow_StateChanged);

            // Message Received is the event used to indicate that a message has
            // been received from the far end.
            _instantMessagingFlow.MessageReceived += new EventHandler<InstantMessageReceivedEventArgs>(this.InstantMessagingFlow_MessageReceived);

            // call top level event handler
            if (_imFlowConfigurationRequestedEventHandler != null)
            {
                _imFlowConfigurationRequestedEventHandler(sender, e);
            }
        }