Sets the connection to use for the outgoing
signaling session before calling Participate. The initial Invite
for the session will use this connection instead getting the
connection based on endpoint settings. This method can be used only
for SipPeerToPeer endpoint. Signaling sessions for SipEndpoint will
use the connection maintained by SipEndpoint. The transport
specified for the connection should be as secure as the tranport
needed to send the Invite or else the Participate method call may
fail. IMPORTANT: This is an advanced API. To work properly, the
application should call this method before every redirect as well.
The RedirectReceived event call back handler in the application
should use TryThis and call this method before returning.
Namespace:
Microsoft.Rtc.Signaling
Assembly:
Microsoft.Rtc.Collaboration(in
Microsoft.Rtc.Collaboration.dll)
Syntax
Visual Basic (Declaration) |
Public
Function
BeginSetConnection ( _
proxyHost
As
String, _
proxyPort
As
Integer, _
transport
As
SipTransportType, _
userCallback
As
AsyncCallback, _
state
As
Object _
)
As
IAsyncResult
|
C# |
public
IAsyncResult
BeginSetConnection(
string
proxyHost,
int
proxyPort,
SipTransportType
transport,
AsyncCallback
userCallback,
Object
state
)
|
Visual C++ |
public:
IAsyncResult^
BeginSetConnection(
String^
proxyHost,
int
proxyPort,
SipTransportType
transport,
AsyncCallback^
userCallback,
Object^
state
)
|
JavaScript |
function
beginSetConnection(
proxyHost,
proxyPort,
transport,
userCallback,
state);
|
Parameters
-
proxyHost
- Type:
String
The proxy host for the connection.
-
proxyPort
- Type:
Int32
The port for the proxy.
-
transport
- Type:
Microsoft.Rtc.Signaling
.
.
::
.
SipTransportType
The transport.
-
userCallback
- Type:
AsyncCallback
The method to be called when the asynchronous operation is
completed.
-
state
- Type:
Object
A user-provided object that distinguishes this particular
asynchronous operation from other asynchronous operations.
Return Value
An IAsyncResult that
references the asynchronous operation.
See Also