C# 클래스 Microsoft.AspNetCore.SignalR.Hubs.AuthorizeModule

This module is added the the HubPipeline by default. Hub level attributes that implement IAuthorizeHubConnection such as AuthorizeAttribute are applied to determine whether to allow potential clients to receive messages sent from that hub using a HubContext or a HubConnectionContext All applicable hub attributes must allow hub connection for the connection to be authorized. Hub and method level attributes that implement IAuthorizeHubMethodInvocation such as AuthorizeAttribute are applied to determine whether to allow callers to invoke hub methods. All applicable hub level AND method level attributes must allow hub method invocation for the invocation to be authorized. Optionally, this module may be instantiated with IAuthorizeHubConnection and IAuthorizeHubMethodInvocation authorizers that will be applied globally to all hubs and hub methods.
상속: HubPipelineModule
파일 보기 프로젝트 열기: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

공개 메소드들

메소드 설명
AuthorizeModule ( ) : System
AuthorizeModule ( IAuthorizeHubConnection globalConnectionAuthorizer, IAuthorizeHubMethodInvocation globalInvocationAuthorizer ) : System
BuildAuthorizeConnect ( Func authorizeConnect ) : Func
BuildIncoming ( Func invoke ) : Task>.Func

메소드 상세

AuthorizeModule() 공개 메소드

public AuthorizeModule ( ) : System
리턴 System

AuthorizeModule() 공개 메소드

public AuthorizeModule ( IAuthorizeHubConnection globalConnectionAuthorizer, IAuthorizeHubMethodInvocation globalInvocationAuthorizer ) : System
globalConnectionAuthorizer IAuthorizeHubConnection
globalInvocationAuthorizer IAuthorizeHubMethodInvocation
리턴 System

BuildAuthorizeConnect() 공개 메소드

public BuildAuthorizeConnect ( Func authorizeConnect ) : Func
authorizeConnect Func
리턴 Func

BuildIncoming() 공개 메소드

public BuildIncoming ( Func invoke ) : Task>.Func
invoke Func
리턴 Task>.Func