Partager via


PersistentConnection.ProcessRequest Method

.NET Framework 4

Handles all requests for a PersistentConnection.

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

Syntax

'Declaration
Public Overridable Function ProcessRequest ( _
    context As HostContext _
) As Task
'Usage
Dim instance As PersistentConnection 
Dim context As HostContext 
Dim returnValue As Task 

returnValue = instance.ProcessRequest(context)
public virtual Task ProcessRequest(
    HostContext context
)
public:
virtual Task^ ProcessRequest(
    HostContext^ context
)
abstract ProcessRequest : 
        context:HostContext -> Task  
override ProcessRequest : 
        context:HostContext -> Task
public function ProcessRequest(
    context : HostContext
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
A Task that completes when the PersistentConnection pipeline is complete.

Exceptions

Exception Condition
InvalidOperationException

Thrown if the connection wasn't initialized. Thrown if the transport wasn't specified. Thrown if the connection ID wasn't specified.

See Also

Reference

PersistentConnection Class

Microsoft.AspNet.SignalR Namespace