Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AuthorizeHubConnection Method
Collapse the table of content
Expand the table of content

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)

abstract AuthorizeHubConnection : 
        hubDescriptor:HubDescriptor * 
        request:IRequest -> bool  
override AuthorizeHubConnection : 
        hubDescriptor:HubDescriptor * 
        request:IRequest -> bool

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)
Show:
© 2015 Microsoft