Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

AuthorizeAttribute.AuthorizeHubConnection Method

.NET Framework 4.5

Determines whether client is authorized to connect to IHub.

Namespace:  Microsoft.AspNet.SignalR
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
public function AuthorizeHubConnection(
	hubDescriptor : HubDescriptor, 
	request : IRequest
) : boolean

Parameters

hubDescriptor
Type: Microsoft.AspNet.SignalR.Hubs.HubDescriptor
Description of the hub client is attempting to connect to.
request
Type: Microsoft.AspNet.SignalR.IRequest
The (re)connect request from the client.

Return Value

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

Implements

IAuthorizeHubConnection.AuthorizeHubConnection(HubDescriptor, IRequest)
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.