Share via


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

Return Value

Type: System.Boolean
true, if the client is authorized to subscribe to client-side hub method invocations; false, otherwise.

See Also

Reference

IHubPipelineInvoker Interface

Microsoft.AspNet.SignalR.Hubs Namespace