Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.NET Framework 4.5
Given a HubCallerContext , determine whether client is authorized to connect to IHub .
Namespace: Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
'Declaration
Function AuthorizeHubConnection ( _
hubDescriptor As HubDescriptor, _
request As IRequest _
) As Boolean
'Usage
Dim instance As IAuthorizeHubConnection
Dim hubDescriptor As HubDescriptor
Dim request As IRequest
Dim returnValue As Boolean
returnValue = instance.AuthorizeHubConnection(hubDescriptor, _
request)
bool AuthorizeHubConnection(
HubDescriptor hubDescriptor,
IRequest request
)
bool AuthorizeHubConnection(
HubDescriptor^ hubDescriptor,
IRequest^ request
)
abstract AuthorizeHubConnection :
hubDescriptor:HubDescriptor *
request:IRequest -> bool
function AuthorizeHubConnection(
hubDescriptor : HubDescriptor,
request : IRequest
) : boolean
Type: System.Boolean
true if the caller is authorized to connect to the hub; otherwise, false.
Please sign in to use this experience.
Sign in