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

HubPipelineModule.OnBeforeAuthorizeConnect Method

.NET Framework 4.5

This method is called before the AuthorizeConnect components of any modules added later to the IHubPipeline are executed. If this returns false, then those later-added modules will not run and the client will not be allowed to subscribe to client-side invocations of methods belonging to the hub defined by the HubDescriptor .

Namespace:  Microsoft.AspNet.SignalR.Hubs
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
protected virtual bool OnBeforeAuthorizeConnect(
	HubDescriptor hubDescriptor,
	IRequest request


Type: Microsoft.AspNet.SignalR.Hubs.HubDescriptor
A description of the hub the client is trying to subscribe to.
Type: Microsoft.AspNet.SignalR.IRequest
The connect request of the client trying to subscribe to the hub.

Return Value

Type: System.Boolean
true, if the client is authorized to connect to the hub, false otherwise.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.