WebSocketHandler.ProcessWebSocketRequestAsync Method
.NET Framework 4.5
Namespace: Microsoft.AspNet.SignalR.WebSockets
Assemblies: Microsoft.AspNet.SignalR.Owin (in Microsoft.AspNet.SignalR.Owin.dll)
Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
Syntax
'Declaration
Public Function ProcessWebSocketRequestAsync ( _
webSocket As WebSocket, _
disconnectToken As CancellationToken _
) As Task
'Usage
Dim instance As WebSocketHandler
Dim webSocket As WebSocket
Dim disconnectToken As CancellationToken
Dim returnValue As Task
returnValue = instance.ProcessWebSocketRequestAsync(webSocket, _
disconnectToken)
public Task ProcessWebSocketRequestAsync(
WebSocket webSocket,
CancellationToken disconnectToken
)
public:
Task^ ProcessWebSocketRequestAsync(
WebSocket^ webSocket,
CancellationToken disconnectToken
)
member ProcessWebSocketRequestAsync :
webSocket:WebSocket *
disconnectToken:CancellationToken -> Task
public function ProcessWebSocketRequestAsync(
webSocket : WebSocket,
disconnectToken : CancellationToken
) : Task
Parameters
- webSocket
Type: WebSocket
- disconnectToken
Type: System.Threading.CancellationToken
Return Value
Type: System.Threading.Tasks.Task