Creates a new instance of the OfferAnswerContext class.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
signalingContext 
As 

CallDialogContext, _
	
token 
As 

MediaRelayToken, _
	
reason 
As 

SdpOfferAnswerReason _
)
C#
public 
OfferAnswerContext(
	

CallDialogContext 
signalingContext,
	

MediaRelayToken 
token,
	

SdpOfferAnswerReason 
reason
)
Visual C++
public:
OfferAnswerContext(
	

CallDialogContext^ 
signalingContext, 
	

MediaRelayToken^ 
token, 
	

SdpOfferAnswerReason 
reason
)
JavaScript

Microsoft.Rtc.Collaboration.ComponentModel.OfferAnswerContext
= 
function(
signalingContext, 
token, 
reason);

Parameters

signalingContext
Type: Microsoft.Rtc.Collaboration . . :: . CallDialogContext
SignalingContext for the corresponding call dialog.
token
Type: Microsoft.Rtc.Internal.Collaboration . . :: . MediaRelayToken
The media relay token to be used by the MediaProviders.
reason
Type: Microsoft.Rtc.Collaboration.ComponentModel . . :: . SdpOfferAnswerReason
The reason for SDP offer/answer negotiation.

Remarks

The OfferAnswerContext class provides a way to pass information back and forth between a Call and the MediaProviders.

See Also