Share via


IAuthorizeHubConnection.AuthorizeHubConnection Method

.NET Framework 4.5

Given a HubCallerContext , determine whether client is authorized to connect to IHub .

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

Syntax

bool AuthorizeHubConnection(
    HubDescriptor hubDescriptor,
    IRequest request
)

Parameters

Return Value

Type: System.Boolean
true if the caller is authorized to connect to the hub; otherwise, false.

See Also

Reference

IAuthorizeHubConnection Interface

Microsoft.AspNet.SignalR.Hubs Namespace