PersistentConnection.OnConnected Method

.NET Framework 4.5

Called when a new connection is made.

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

abstract OnConnected : 
        request:IRequest * 
        connectionId:string -> Task  
override OnConnected : 
        request:IRequest * 
        connectionId:string -> Task

Parameters

request
Type: Microsoft.AspNet.SignalR.IRequest
The IRequest for the current connection.
connectionId
Type: System.String
The ID of the reconnecting client.

Return Value

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