Share via


PersistentConnection.OnRejoiningGroups Method

.NET Framework 4

Called when a connection reconnects after a timeout to determine which groups should be rejoined.

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

Syntax

'Declaration
Protected Overridable Function OnRejoiningGroups ( _
    request As IRequest, _
    groups As IList(Of String), _
    connectionId As String _
) As IList(Of String)
'Usage
Dim request As IRequest 
Dim groups As IList(Of String)
Dim connectionId As String 
Dim returnValue As IList(Of String)

returnValue = Me.OnRejoiningGroups(request, _
    groups, connectionId)
protected virtual IList<string> OnRejoiningGroups(
    IRequest request,
    IList<string> groups,
    string connectionId
)
protected:
virtual IList<String^>^ OnRejoiningGroups(
    IRequest^ request, 
    IList<String^>^ groups, 
    String^ connectionId
)
abstract OnRejoiningGroups : 
        request:IRequest * 
        groups:IList<string> * 
        connectionId:string -> IList<string> 
override OnRejoiningGroups : 
        request:IRequest * 
        groups:IList<string> * 
        connectionId:string -> IList<string> 
protected function OnRejoiningGroups(
    request : IRequest, 
    groups : IList<String>, 
    connectionId : String
) : IList<String>

Parameters

  • connectionId
    Type: System.String
    The ID of the reconnecting client.

Return Value

Type: System.Collections.Generic.IList<String>
A collection of group names that should be joined on reconnect.

See Also

Reference

PersistentConnection Class

Microsoft.AspNet.SignalR Namespace