C# Class Microsoft.AspNetCore.SignalR.HubOptionsExtensions

Afficher le fichier Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript

Méthodes publiques

Méthode Description
RequireAuthentication ( this options ) : void

Requiring Authentication adds an AuthorizeModule to the HubOptions with IAuthorizeHubConnection and IAuthorizeHubMethodInvocation authorizers that will be applied globally to all hubs and hub methods. These authorizers require that the System.Security.Principal.IPrincipal's System.Security.Principal.IIdentity IsAuthenticated for any clients that invoke server-side hub methods or receive client-side hub method invocations.

Method Details

RequireAuthentication() public static méthode

Requiring Authentication adds an AuthorizeModule to the HubOptions with IAuthorizeHubConnection and IAuthorizeHubMethodInvocation authorizers that will be applied globally to all hubs and hub methods. These authorizers require that the System.Security.Principal.IPrincipal's System.Security.Principal.IIdentity IsAuthenticated for any clients that invoke server-side hub methods or receive client-side hub method invocations.
public static RequireAuthentication ( this options ) : void
options this The to which the will be added.
Résultat void