KestrunRuntimeApiAttribute class

Attribute to specify runtime API context and notes for Kestrun routes or schedules.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false)]
public sealed class KestrunRuntimeApiAttribute : Attribute
parameter description
contexts The API contexts in which the route or schedule can be executed.

Public Members

name description
KestrunRuntimeApiAttribute(…) Attribute to specify runtime API context and notes for Kestrun routes or schedules.
Contexts { get; } Gets the API contexts in which the route or schedule can be executed.
Notes { get; set; } Optional notes or description for the route.
SafeForUntrusted { get; set; } Indicates whether the route is safe to be executed by untrusted callers.

Remarks

Initializes a new instance of the KestrunRuntimeApiAttribute class with the specified API contexts.

See Also