Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PersistentConnection.OnReceived Method

.NET Framework 4.5

Called when data is received from a connection.

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

'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)

Parameters

request
Type: Microsoft.AspNet.SignalR.IRequest
The IRequest for the current connection.
connectionId
Type: System.String
The ID of the connection sending the data.
data
Type: System.String
The payload sent to the connection.

Return Value

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