C# Класс Microsoft.AspNet.SignalR.AuthorizeAttribute

Наследование: System.Attribute, IAuthorizeHubConnection, IAuthorizeHubMethodInvocation
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
SplitString string[]

Открытые методы

Метод Описание
AuthorizeHubConnection ( HubDescriptor hubDescriptor, IRequest request ) : bool

Determines whether client is authorized to connect to IHub.

AuthorizeHubMethodInvocation ( IHubIncomingInvokerContext hubIncomingInvokerContext, bool appliesToMethod ) : bool

Determines whether client is authorized to invoke the IHub method.

Защищенные методы

Метод Описание
UserAuthorized ( IPrincipal user ) : bool

When overridden, provides an entry point for custom authorization checks. Called by AuthorizeAttribute.AuthorizeHubConnection and AuthorizeAttribute.AuthorizeHubMethodInvocation.

Приватные методы

Метод Описание
SplitString ( string original ) : string[]

Описание методов

AuthorizeHubConnection() публичный Метод

Determines whether client is authorized to connect to IHub.
public AuthorizeHubConnection ( HubDescriptor hubDescriptor, IRequest request ) : bool
hubDescriptor Microsoft.AspNet.SignalR.Hubs.HubDescriptor Description of the hub client is attempting to connect to.
request IRequest The (re)connect request from the client.
Результат bool

AuthorizeHubMethodInvocation() публичный Метод

Determines whether client is authorized to invoke the IHub method.
public AuthorizeHubMethodInvocation ( IHubIncomingInvokerContext hubIncomingInvokerContext, bool appliesToMethod ) : bool
hubIncomingInvokerContext IHubIncomingInvokerContext An providing details regarding the method invocation.
appliesToMethod bool Indicates whether the interface instance is an attribute applied directly to a method.
Результат bool

UserAuthorized() защищенный Метод

When overridden, provides an entry point for custom authorization checks. Called by AuthorizeAttribute.AuthorizeHubConnection and AuthorizeAttribute.AuthorizeHubMethodInvocation.
protected UserAuthorized ( IPrincipal user ) : bool
user IPrincipal The for the client being authorize
Результат bool