IHubPipelineInvoker::AuthorizeConnect 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 subscribe to client-side hub method invocations; false, otherwise.
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.
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
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::Booleantrue, if the client is authorized to subscribe to client-side hub method invocations; false, otherwise.
Show: