IAuthorizeHubMethodInvocation.AuthorizeHubMethodInvocation Method

.NET Framework 4.5

Given a IHubIncomingInvokerContext , determine whether client is authorized to invoke the IHub method.

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

Syntax

bool AuthorizeHubMethodInvocation(
    IHubIncomingInvokerContext hubIncomingInvokerContext,
    bool appliesToMethod
)

Parameters

  • appliesToMethod
    Type: System.Boolean
    Indicates whether the interface instance is an attribute applied directly to a method.

Return Value

Type: System.Boolean
true if the caller is authorized to invoke the IHub method; otherwise, false.

See Also

Reference

IAuthorizeHubMethodInvocation Interface

Microsoft.AspNet.SignalR.Hubs Namespace