InstantMessagingCall.InstantMessagingFlowConfigurationRequested Event

Raised when InstantMessagingFlow is created. Applications can use this event handler to register for flow related event handlers and optionally set flow configuration.

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Event InstantMessagingFlowConfigurationRequested As EventHandler(Of InstantMessagingFlowConfigurationRequestedEventArgs)
'Usage
Dim instance As InstantMessagingCall
Dim handler As EventHandler(Of InstantMessagingFlowConfigurationRequestedEventArgs)

AddHandler instance.InstantMessagingFlowConfigurationRequested, handler
public event EventHandler<InstantMessagingFlowConfigurationRequestedEventArgs> InstantMessagingFlowConfigurationRequested

Remarks

It is recommended that the application register an event handler for this event to apply specific configuration settings on the flow object. Applications which wish to configure the flow for the initial SDP negotiation must do so in the event handler

Examples

The following examples shows how to register events in the flow configuration requested handler.

C# FlowConfigurationRequested on InstantMessagingCall

 
_imCall1.InstantMessagingFlowConfigurationRequested +=
    this.FlowConfigurationRequested;


private void FlowConfigurationRequested(
    object sender,
    InstantMessagingFlowConfigurationRequestedEventArgs e)
{
    // Register to receive messages.
    e.Flow.MessageReceived += this.MessageReceived;

    // Register to receive composing state changes.
    e.Flow.RemoteComposingStateChanged += this.ComposingStateChanged;

    // Register to receive delivery notifications
    e.Flow.DeliveryNotificationReceived += this.DeliveryNotificationReceived;
}

See Also

Reference

InstantMessagingCall Class

InstantMessagingCall Members

Microsoft.Rtc.Collaboration Namespace

InstantMessagingFlowTemplate