C# Class 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.
Inheritance: HubPipelineModule
Afficher le fichier Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

Méthodes publiques

Méthode Description
AuthorizeModule ( ) : System
AuthorizeModule ( IAuthorizeHubConnection globalConnectionAuthorizer, IAuthorizeHubMethodInvocation globalInvocationAuthorizer ) : System
BuildAuthorizeConnect ( Func authorizeConnect ) : Func
BuildIncoming ( Func invoke ) : Task>.Func

Method Details

AuthorizeModule() public méthode

public AuthorizeModule ( ) : System
Résultat System

AuthorizeModule() public méthode

public AuthorizeModule ( IAuthorizeHubConnection globalConnectionAuthorizer, IAuthorizeHubMethodInvocation globalInvocationAuthorizer ) : System
globalConnectionAuthorizer IAuthorizeHubConnection
globalInvocationAuthorizer IAuthorizeHubMethodInvocation
Résultat System

BuildAuthorizeConnect() public méthode

public BuildAuthorizeConnect ( Func authorizeConnect ) : Func
authorizeConnect Func
Résultat Func

BuildIncoming() public méthode

public BuildIncoming ( Func invoke ) : Task>.Func
invoke Func
Résultat Task>.Func