Share via


IWebSocketRequest.AcceptWebSocketRequest Method

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR.Hosting
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Function AcceptWebSocketRequest ( _
    callback As Func(Of IWebSocket, Task) _
) As Task
'Usage
Dim instance As IWebSocketRequest 
Dim callback As Func(Of IWebSocket, Task)
Dim returnValue As Task 

returnValue = instance.AcceptWebSocketRequest(callback)
Task AcceptWebSocketRequest(
    Func<IWebSocket, Task> callback
)
Task^ AcceptWebSocketRequest(
    Func<IWebSocket^, Task^>^ callback
)
abstract AcceptWebSocketRequest : 
        callback:Func<IWebSocket, Task> -> Task
function AcceptWebSocketRequest(
    callback : Func<IWebSocket, Task>
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

See Also

Reference

IWebSocketRequest Interface

Microsoft.AspNet.SignalR.Hosting Namespace