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
Show file Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

Public Methods

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

Method Details

AuthorizeModule() public method

public AuthorizeModule ( ) : System
return System

AuthorizeModule() public method

public AuthorizeModule ( IAuthorizeHubConnection globalConnectionAuthorizer, IAuthorizeHubMethodInvocation globalInvocationAuthorizer ) : System
globalConnectionAuthorizer IAuthorizeHubConnection
globalInvocationAuthorizer IAuthorizeHubMethodInvocation
return System

BuildAuthorizeConnect() public method

public BuildAuthorizeConnect ( Func authorizeConnect ) : Func
authorizeConnect Func
return Func

BuildIncoming() public method

public BuildIncoming ( Func invoke ) : Task>.Func
invoke Func
return Task>.Func