AuthorizeAttribute::AuthorizeHubMethodInvocation Method
.NET Framework 4.5 Namespace:
Microsoft.AspNet.SignalR
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
true if the caller is authorized to invoke the IHub method; otherwise, false.
Determines whether client is authorized to invoke the IHub method.
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
public: virtual bool AuthorizeHubMethodInvocation( IHubIncomingInvokerContext^ hubIncomingInvokerContext, bool appliesToMethod )
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::Booleantrue if the caller is authorized to invoke the IHub method; otherwise, false.
Implements
IAuthorizeHubMethodInvocation::AuthorizeHubMethodInvocation(IHubIncomingInvokerContext, Boolean)
Show: