Share via


TransportHelper.GetNegotiationResponse Method

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR.Client.Transports
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetNegotiationResponse ( _
    httpClient As IHttpClient, _
    connection As IConnection _
) As Task(Of NegotiationResponse)
'Usage
Dim httpClient As IHttpClient 
Dim connection As IConnection 
Dim returnValue As Task(Of NegotiationResponse)

returnValue = httpClient.GetNegotiationResponse(connection)
public static Task<NegotiationResponse> GetNegotiationResponse(
    this IHttpClient httpClient,
    IConnection connection
)
[ExtensionAttribute]
public:
static Task<NegotiationResponse^>^ GetNegotiationResponse(
    IHttpClient^ httpClient, 
    IConnection^ connection
)
static member GetNegotiationResponse : 
        httpClient:IHttpClient * 
        connection:IConnection -> Task<NegotiationResponse> 
public static function GetNegotiationResponse(
    httpClient : IHttpClient, 
    connection : IConnection
) : Task<NegotiationResponse>

Parameters

Return Value

Type: System.Threading.Tasks.Task<NegotiationResponse>
Returns Task<TResult>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IHttpClient. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.100).

See Also

Reference

TransportHelper Class

Microsoft.AspNet.SignalR.Client.Transports Namespace