AuthorizeAttribute.AuthorizeHubMethodInvocation Method

.NET Framework 4

Determines whether client is authorized to invoke the IHub method.

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

Syntax

'Declaration
Public Overridable Function AuthorizeHubMethodInvocation ( _
    hubIncomingInvokerContext As IHubIncomingInvokerContext, _
    appliesToMethod As Boolean _
) As Boolean
'Usage
Dim instance As AuthorizeAttribute 
Dim hubIncomingInvokerContext As IHubIncomingInvokerContext 
Dim appliesToMethod As Boolean 
Dim returnValue As Boolean 

returnValue = instance.AuthorizeHubMethodInvocation(hubIncomingInvokerContext, _
    appliesToMethod)
public virtual bool AuthorizeHubMethodInvocation(
    IHubIncomingInvokerContext hubIncomingInvokerContext,
    bool appliesToMethod
)
public:
virtual bool AuthorizeHubMethodInvocation(
    IHubIncomingInvokerContext^ hubIncomingInvokerContext, 
    bool appliesToMethod
)
abstract AuthorizeHubMethodInvocation : 
        hubIncomingInvokerContext:IHubIncomingInvokerContext * 
        appliesToMethod:bool -> bool  
override AuthorizeHubMethodInvocation : 
        hubIncomingInvokerContext:IHubIncomingInvokerContext * 
        appliesToMethod:bool -> bool
public function AuthorizeHubMethodInvocation(
    hubIncomingInvokerContext : IHubIncomingInvokerContext, 
    appliesToMethod : boolean
) : boolean

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.

Implements

IAuthorizeHubMethodInvocation.AuthorizeHubMethodInvocation(IHubIncomingInvokerContext, Boolean)

See Also

Reference

AuthorizeAttribute Class

Microsoft.AspNet.SignalR Namespace