Skip to content

GeneratedFromAttribute Class

Marks a partial Minimal API request-model record whose members are produced by the Minimal API model source generator from the given core model type: the bound properties, a static BindAsync(HttpContext) that reads each property from the form/query/headers/connection per the core wire-format markers, the executable validation attributes translated from the core declarative markers, and the implicit operator projecting the bound model onto the core type.

C#
public sealed class GeneratedFromAttribute : System.Attribute

Inheritance System.ObjectSystem.Attribute → GeneratedFromAttribute

Constructors

GeneratedFromAttribute(Type) Constructor

Marks a partial Minimal API request-model record whose members are produced by the Minimal API model source generator from the given core model type: the bound properties, a static BindAsync(HttpContext) that reads each property from the form/query/headers/connection per the core wire-format markers, the executable validation attributes translated from the core declarative markers, and the implicit operator projecting the bound model onto the core type.

C#
public GeneratedFromAttribute(System.Type coreModelType);

Parameters

coreModelType System.Type

The core model type in Abblix.Oidc.Server.Model to generate from.

Properties

GeneratedFromAttribute.CoreModelType Property

The core model type the Minimal API model is generated from.

C#
public System.Type CoreModelType { get; }

Property Value

System.Type

GeneratedFromAttribute.SupportsGet Property

Indicates that the endpoint also accepts the request via HTTP GET, so the generated BindAsync reads each value from the query string as well as the posted form (the authorization, userinfo and end-session endpoints).

C#
public bool SupportsGet { get; init; }

Property Value

System.Boolean