HubPipelineModule::OnBeforeAuthorizeConnect Method
.NET Framework 4.5 Namespace:
Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
true, if the client is authorized to connect to the hub, false otherwise.
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 .
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
protected: virtual bool OnBeforeAuthorizeConnect( HubDescriptor^ hubDescriptor, IRequest^ request )
Parameters
- hubDescriptor
- Type: Microsoft.AspNet.SignalR.Hubs::HubDescriptor
A description of the hub the client is trying to subscribe to.
- request
- Type: Microsoft.AspNet.SignalR::IRequest
The connect request of the client trying to subscribe to the hub.
Return Value
Type: System::Booleantrue, if the client is authorized to connect to the hub, false otherwise.
Show: