C# 클래스 Microsoft.AspNet.SignalR.AuthorizeAttribute

상속: System.Attribute, IAuthorizeHubConnection, IAuthorizeHubMethodInvocation
파일 보기 프로젝트 열기: SignalR/SignalR

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