AuthorizeModule::BuildAuthorizeConnect Method
.NET Framework 4.5 Namespace:
Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
A wrapped function that dictates whether or not the client is authorized to connect to the described Hub.
Wraps a function 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 hub to help determine if the client is authorized to subscribe to method invocations for the described hub. The function returns true if the client is authorized to subscribe to client-side hub method invocations; false, otherwise.
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
public: virtual Func<HubDescriptor^, IRequest^, bool>^ BuildAuthorizeConnect( Func<HubDescriptor^, IRequest^, bool>^ authorizeConnect ) override
Parameters
- authorizeConnect
- Type: System::Func<HubDescriptor, IRequest, Boolean>
A function that dictates whether or not the client is authorized to connect to the described Hub.
Return Value
Type: System::Func<HubDescriptor, IRequest, Boolean>A wrapped function that dictates whether or not the client is authorized to connect to the described Hub.
Implements
IHubPipelineModule::BuildAuthorizeConnect(Func<HubDescriptor, IRequest, Boolean>)
Show: