Share via


AuthorizeAttribute.AuthorizeHubConnection Method

.NET Framework 4

Determines whether client is authorized to connect to IHub.

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

Syntax

'Declaration
Public Overridable Function AuthorizeHubConnection ( _
    hubDescriptor As HubDescriptor, _
    request As IRequest _
) As Boolean
'Usage
Dim instance As AuthorizeAttribute 
Dim hubDescriptor As HubDescriptor 
Dim request As IRequest 
Dim returnValue As Boolean 

returnValue = instance.AuthorizeHubConnection(hubDescriptor, _
    request)
public virtual bool AuthorizeHubConnection(
    HubDescriptor hubDescriptor,
    IRequest request
)
public:
virtual bool AuthorizeHubConnection(
    HubDescriptor^ hubDescriptor, 
    IRequest^ request
)
abstract AuthorizeHubConnection : 
        hubDescriptor:HubDescriptor * 
        request:IRequest -> bool  
override AuthorizeHubConnection : 
        hubDescriptor:HubDescriptor * 
        request:IRequest -> bool
public function AuthorizeHubConnection(
    hubDescriptor : HubDescriptor, 
    request : IRequest
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the caller is authorized to connect to the hub; otherwise, false.

Implements

IAuthorizeHubConnection.AuthorizeHubConnection(HubDescriptor, IRequest)

See Also

Reference

AuthorizeAttribute Class

Microsoft.AspNet.SignalR Namespace