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)


Protected Overridable Function OnReceived ( _
    request As IRequest, _
    connectionId As String, _
    data As String _
) As Task
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
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


  • 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


PersistentConnection Class

Microsoft.AspNet.SignalR Namespace