IHubPipelineInvoker.RejoiningGroups Method
.NET Framework 4
This method determines which of the groups belonging to the hub described by the HubDescriptor the client should be allowed to rejoin. By default, clients that are reconnecting to the server will be removed from all groups they may have previously been a member of, because untrusted clients may claim to be a member of groups they were never authorized to join.
Namespace: Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Function RejoiningGroups ( _
hubDescriptor As HubDescriptor, _
request As IRequest, _
groups As IList(Of String) _
) As IList(Of String)
'Usage
Dim instance As IHubPipelineInvoker
Dim hubDescriptor As HubDescriptor
Dim request As IRequest
Dim groups As IList(Of String)
Dim returnValue As IList(Of String)
returnValue = instance.RejoiningGroups(hubDescriptor, _
request, groups)
IList<string> RejoiningGroups(
HubDescriptor hubDescriptor,
IRequest request,
IList<string> groups
)
IList<String^>^ RejoiningGroups(
HubDescriptor^ hubDescriptor,
IRequest^ request,
IList<String^>^ groups
)
abstract RejoiningGroups :
hubDescriptor:HubDescriptor *
request:IRequest *
groups:IList<string> -> IList<string>
function RejoiningGroups(
hubDescriptor : HubDescriptor,
request : IRequest,
groups : IList<String>
) : IList<String>
Parameters
- hubDescriptor
Type: Microsoft.AspNet.SignalR.Hubs.HubDescriptor
A description of the hub for which the client is attempting to rejoin groups.
- request
Type: Microsoft.AspNet.SignalR.IRequest
The reconnect request being made by the client that is attempting to rejoin groups.
- groups
Type: System.Collections.Generic.IList<String>
The list of groups belonging to the relevant hub that the client claims to have been a member of before the reconnect.
Return Value
Type: System.Collections.Generic.IList<String>
A list of groups the client is allowed to rejoin.