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
Показать файл Открыть проект

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

Метод Описание
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