IHubPipelineInvoker::AuthorizeConnect Method

.NET Framework 4.5

To be called before a client subscribes to signals belonging to the hub described by the HubDescriptor . By default, the AuthorizeModule will look for attributes on the IHub to help determine if the client is authorized to subscribe to method invocations for the described hub.

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

bool AuthorizeConnect(
	HubDescriptor^ hubDescriptor, 
	IRequest^ request
)

Parameters

hubDescriptor
Type: Microsoft.AspNet.SignalR.Hubs::HubDescriptor
A description of the hub the client is attempting to connect to.
request
Type: Microsoft.AspNet.SignalR::IRequest
The connect request being made by the client which should include the client's IPrincipal User.

Return Value

Type: System::Boolean
true, if the client is authorized to subscribe to client-side hub method invocations; false, otherwise.
Show: