HubPipelineModule.BuildAuthorizeConnect Method

.NET Framework 4.5

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 IHub 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.

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

public virtual Func<HubDescriptor, IRequest, bool> BuildAuthorizeConnect(
	Func<HubDescriptor, IRequest, bool> authorizeConnect
)

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: