Table of Contents

Class RequireCapabilityGrantAttribute

Namespace
AsiBackbone.AspNetCore.Endpoints
Assembly
AsiBackbone.AspNetCore.dll

Marks an ASP.NET Core endpoint as requiring a host-validated capability grant before execution.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class RequireCapabilityGrantAttribute : Attribute, IEndpointCapabilityGrantMetadata, IEndpointGovernanceMetadata
Inheritance
RequireCapabilityGrantAttribute
Implements
Inherited Members

Constructors

RequireCapabilityGrantAttribute(string)

Initializes a new instance of the RequireCapabilityGrantAttribute class.

public RequireCapabilityGrantAttribute(string scope)

Parameters

scope string

The required capability-grant scope.

Properties

Scope

Gets the required capability-grant scope.

public string Scope { get; }

Property Value

string