IHubPipelineInvoker.AuthorizeConnect Method
.NET Framework 4
To be called before a client subscribes to signals belonging to the hub described by the HubDescriptor . By default, the AuthorizeModule will look for attributes on the IHub to help determine if the client is authorized to subscribe to method invocations for the described hub.
Namespace: Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Function AuthorizeConnect ( _
hubDescriptor As HubDescriptor, _
request As IRequest _
) As Boolean
'Usage
Dim instance As IHubPipelineInvoker
Dim hubDescriptor As HubDescriptor
Dim request As IRequest
Dim returnValue As Boolean
returnValue = instance.AuthorizeConnect(hubDescriptor, _
request)
bool AuthorizeConnect(
HubDescriptor hubDescriptor,
IRequest request
)
bool AuthorizeConnect(
HubDescriptor^ hubDescriptor,
IRequest^ request
)
abstract AuthorizeConnect :
hubDescriptor:HubDescriptor *
request:IRequest -> bool
function AuthorizeConnect(
hubDescriptor : HubDescriptor,
request : IRequest
) : boolean
Parameters
- hubDescriptor
Type: Microsoft.AspNet.SignalR.Hubs.HubDescriptor
A description of the hub the client is attempting to connect to.
- request
Type: Microsoft.AspNet.SignalR.IRequest
The connect request being made by the client which should include the client's IPrincipal User.
Return Value
Type: System.Boolean
true, if the client is authorized to subscribe to client-side hub method invocations; false, otherwise.