Microsoft.AspNetCore.SignalR.Hubs.HubPipelineModule.OnBeforeAuthorizeConnect C# (CSharp) Method

OnBeforeAuthorizeConnect() protected method

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.
protected OnBeforeAuthorizeConnect ( HubDescriptor hubDescriptor, HttpRequest request ) : bool
hubDescriptor HubDescriptor A description of the hub the client is trying to subscribe to.
request HttpRequest The connect request made by the client trying to subscribe to the hub.
return bool
        protected virtual bool OnBeforeAuthorizeConnect(HubDescriptor hubDescriptor, HttpRequest request)
        {
            return true;
        }