Skip to content

Class RestApiGovernanceOptions

Namespace: Cephalon.AspNetCore.Hosting
Assembly: Cephalon.AspNetCore.dll

Configures host-level governance for public REST endpoint publication in Cephalon ASP.NET Core hosts.

public sealed class RestApiGovernanceOptions

objectRestApiGovernanceOptions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

These settings describe host-level publication governance for module-owned REST shorthand paths. They intentionally stay out of the engine core because they govern the ASP.NET Core public REST surface.

RestApiGovernanceOptions(IReadOnlyList<RestEndpointPublicationGroupAuthoringPolicyDescriptor>?, IReadOnlyList<RestEndpointSuppressionOptions>?, IReadOnlyList<RestEndpointOverrideOptions>?)

Section titled “ RestApiGovernanceOptions(IReadOnlyList<RestEndpointPublicationGroupAuthoringPolicyDescriptor>?, IReadOnlyList<RestEndpointSuppressionOptions>?, IReadOnlyList<RestEndpointOverrideOptions>?)”

Initializes a new instance of the class.

public RestApiGovernanceOptions(IReadOnlyList<RestEndpointPublicationGroupAuthoringPolicyDescriptor>? authoringPolicies = null, IReadOnlyList<RestEndpointSuppressionOptions>? suppressions = null, IReadOnlyList<RestEndpointOverrideOptions>? overrides = null)

authoringPolicies IReadOnlyList<RestEndpointPublicationGroupAuthoringPolicyDescriptor>?

The configured behavior-level authoring policies for REST publication groups.

suppressions IReadOnlyList<RestEndpointSuppressionOptions>?

The configured suppression rules for shorthand REST candidates.

overrides IReadOnlyList<RestEndpointOverrideOptions>?

The configured override rules for shorthand REST candidates.

Gets the root configuration section used for REST API governance settings.

public const string SectionName = "RestApi"

string

Gets the configured behavior-level authoring policies for REST publication groups.

public IReadOnlyList<RestEndpointPublicationGroupAuthoringPolicyDescriptor> AuthoringPolicies { get; }

IReadOnlyList<RestEndpointPublicationGroupAuthoringPolicyDescriptor>

Gets a value indicating whether any REST governance values were explicitly supplied.

public bool HasValues { get; }

bool

Gets the configured override rules for descriptor-backed REST shorthand candidates.

public IReadOnlyList<RestEndpointOverrideOptions> Overrides { get; }

IReadOnlyList<RestEndpointOverrideOptions>

Gets the configured suppression rules for descriptor-backed REST shorthand candidates.

public IReadOnlyList<RestEndpointSuppressionOptions> Suppressions { get; }

IReadOnlyList<RestEndpointSuppressionOptions>

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Binds and normalizes REST governance settings from configuration.

public static RestApiGovernanceOptions FromConfiguration(IConfiguration configuration, string sectionPath = "RestApi")

configuration IConfiguration

The application configuration root.

sectionPath string

The configuration section path to bind.

RestApiGovernanceOptions

The normalized REST governance settings.