Megosztás a következőn keresztül:


AuthorizationHandler<TRequirement> Class

Definition

Base class for authorization handlers that need to be called for a specific requirement type.

generic <typename TRequirement>
 where TRequirement : IAuthorizationRequirementpublic ref class AuthorizationHandler abstract : Microsoft::AspNetCore::Authorization::IAuthorizationHandler
public abstract class AuthorizationHandler<TRequirement> : Microsoft.AspNetCore.Authorization.IAuthorizationHandler where TRequirement : IAuthorizationRequirement
type AuthorizationHandler<'Requirement (requires 'Requirement :> IAuthorizationRequirement)> = class
    interface IAuthorizationHandler
Public MustInherit Class AuthorizationHandler(Of TRequirement)
Implements IAuthorizationHandler

Type Parameters

TRequirement

The type of the requirement to handle.

Inheritance
AuthorizationHandler<TRequirement>
Derived
Implements

Constructors

AuthorizationHandler<TRequirement>()

Methods

HandleAsync(AuthorizationHandlerContext)

Makes a decision if authorization is allowed.

HandleRequirementAsync(AuthorizationHandlerContext, TRequirement)

Makes a decision if authorization is allowed based on a specific requirement.

Applies to