Skip to content

Class EngineWebApplicationBuilderExtensions

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

Registers the Cephalon ASP.NET Core host services on a .

public static class EngineWebApplicationBuilderExtensions

objectEngineWebApplicationBuilderExtensions

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

Adds Cephalon to the builder using configuration-only engine setup.

public static WebApplicationBuilder AddCephalon(this WebApplicationBuilder builder)

builder WebApplicationBuilder

The ASP.NET Core application builder to extend.

WebApplicationBuilder

The same builder instance for fluent composition.

AddCephalon(WebApplicationBuilder, Action<EngineBuilder>)

Section titled “ AddCephalon(WebApplicationBuilder, Action<EngineBuilder>)”

Adds Cephalon to the builder and allows additional code-based engine configuration.

public static WebApplicationBuilder AddCephalon(this WebApplicationBuilder builder, Action<EngineBuilder> configure)

builder WebApplicationBuilder

The ASP.NET Core application builder to extend.

configure Action<EngineBuilder>

The callback that configures the underlying engine builder.

WebApplicationBuilder

The same builder instance for fluent composition.

This method wires OpenAPI, Scalar-ready document transformers, health checks, hosted runtime startup, and the built-in ASP.NET Core transport mappers before registering the engine itself.

AddCephalonHttpLogging(WebApplicationBuilder, Action<HttpRequestResponseLoggingOptions>?)

Section titled “ AddCephalonHttpLogging(WebApplicationBuilder, Action<HttpRequestResponseLoggingOptions>?)”

Adds Cephalon’s HTTP request and response logging options to the ASP.NET Core host.

public static WebApplicationBuilder AddCephalonHttpLogging(this WebApplicationBuilder builder, Action<HttpRequestResponseLoggingOptions>? configure = null)

builder WebApplicationBuilder

The ASP.NET Core application builder to extend.

configure Action<HttpRequestResponseLoggingOptions>?

An optional callback that can extend or override the configuration-driven request-logging setup.

WebApplicationBuilder

The same builder instance for fluent host composition.

The logging contract is read from Engine:Observability:HttpLogging so teams can opt into request/response summaries and bounded body capture without introducing a separate host-specific section.

AddCephalonProjectConfigurations(WebApplicationBuilder)

Section titled “ AddCephalonProjectConfigurations(WebApplicationBuilder)”

Adds Cephalon’s project-configuration conventions to the ASP.NET Core builder.

public static WebApplicationBuilder AddCephalonProjectConfigurations(this WebApplicationBuilder builder)

builder WebApplicationBuilder

The ASP.NET Core application builder to extend.

WebApplicationBuilder

The same builder instance for fluent composition.

This loads split configuration files from the project’s Configurations folder so settings such as engine, OpenAPI, CORS, or hosted-doc options can be grouped by concern without taking away the standard appsettings.json and appsettings.{Environment}.json override flow.

AddReferenceDocsHosting(WebApplicationBuilder, Action<ReferenceDocsHostingOptions>?)

Section titled “ AddReferenceDocsHosting(WebApplicationBuilder, Action<ReferenceDocsHostingOptions>?)”

Adds hosted reference-doc configuration to the ASP.NET Core host.

public static WebApplicationBuilder AddReferenceDocsHosting(this WebApplicationBuilder builder, Action<ReferenceDocsHostingOptions>? configure = null)

builder WebApplicationBuilder

The ASP.NET Core application builder to extend.

configure Action<ReferenceDocsHostingOptions>?

An optional callback that can extend or override the configuration-driven hosting setup.

WebApplicationBuilder

The same builder instance for fluent composition.

Reference-doc hosting stays in the host layer because it serves already-generated static artifacts such as browse.html, members.md, and reference-manifest.json.