Partager via


PersistentConnection.OnReceived Method

.NET Framework 4

Called when data is received from a connection.

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

Syntax

'Declaration
Protected Overridable Function OnReceived ( _
    request As IRequest, _
    connectionId As String, _
    data As String _
) As Task
'Usage
Dim request As IRequest 
Dim connectionId As String 
Dim data As String 
Dim returnValue As Task 

returnValue = Me.OnReceived(request, _
    connectionId, data)
protected virtual Task OnReceived(
    IRequest request,
    string connectionId,
    string data
)
protected:
virtual Task^ OnReceived(
    IRequest^ request, 
    String^ connectionId, 
    String^ data
)
abstract OnReceived : 
        request:IRequest * 
        connectionId:string * 
        data:string -> Task  
override OnReceived : 
        request:IRequest * 
        connectionId:string * 
        data:string -> Task
protected function OnReceived(
    request : IRequest, 
    connectionId : String, 
    data : String
) : Task

Parameters

  • connectionId
    Type: System.String
    The ID of the connection sending the data.

Return Value

Type: System.Threading.Tasks.Task
A Task that completes when the receive operation is complete.

See Also

Reference

PersistentConnection Class

Microsoft.AspNet.SignalR Namespace