Share via


PersistentConnection.OnConnected Method

.NET Framework 4

Called when a new connection is made.

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

Syntax

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

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

Parameters

  • 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.

See Also

Reference

PersistentConnection Class

Microsoft.AspNet.SignalR Namespace