IAuthorizeHubMethodInvocation.AuthorizeHubMethodInvocation Method
.NET Framework 4
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
'Declaration
Function AuthorizeHubMethodInvocation ( _
hubIncomingInvokerContext As IHubIncomingInvokerContext, _
appliesToMethod As Boolean _
) As Boolean
'Usage
Dim instance As IAuthorizeHubMethodInvocation
Dim hubIncomingInvokerContext As IHubIncomingInvokerContext
Dim appliesToMethod As Boolean
Dim returnValue As Boolean
returnValue = instance.AuthorizeHubMethodInvocation(hubIncomingInvokerContext, _
appliesToMethod)
bool AuthorizeHubMethodInvocation(
IHubIncomingInvokerContext hubIncomingInvokerContext,
bool appliesToMethod
)
bool AuthorizeHubMethodInvocation(
IHubIncomingInvokerContext^ hubIncomingInvokerContext,
bool appliesToMethod
)
abstract AuthorizeHubMethodInvocation :
hubIncomingInvokerContext:IHubIncomingInvokerContext *
appliesToMethod:bool -> bool
function AuthorizeHubMethodInvocation(
hubIncomingInvokerContext : IHubIncomingInvokerContext,
appliesToMethod : boolean
) : boolean
Parameters
- hubIncomingInvokerContext
Type: Microsoft.AspNet.SignalR.Hubs.IHubIncomingInvokerContext
An IHubIncomingInvokerContext providing details regarding the IHub method invocation.
- 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.