Class EngineWebApplicationBuilderExtensions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.AspNetCore.Hosting
Assembly: Cephalon.AspNetCore.dll
Registers the Cephalon ASP.NET Core host services on a
public static class EngineWebApplicationBuilderExtensionsInheritance
Section titled “Inheritance”object ← EngineWebApplicationBuilderExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”AddCephalon(WebApplicationBuilder)
Section titled “ AddCephalon(WebApplicationBuilder)”Adds Cephalon to the builder using configuration-only engine setup.
public static WebApplicationBuilder AddCephalon(this WebApplicationBuilder builder)Parameters
Section titled “Parameters”builder WebApplicationBuilder
The ASP.NET Core application builder to extend.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”builder WebApplicationBuilder
The ASP.NET Core application builder to extend.
configure Action<EngineBuilder>
The callback that configures the underlying engine builder.
Returns
Section titled “Returns”The same builder instance for fluent composition.
Remarks
Section titled “Remarks”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The same builder instance for fluent host composition.
Remarks
Section titled “Remarks”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)Parameters
Section titled “Parameters”builder WebApplicationBuilder
The ASP.NET Core application builder to extend.
Returns
Section titled “Returns”The same builder instance for fluent composition.
Remarks
Section titled “Remarks”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The same builder instance for fluent composition.
Remarks
Section titled “Remarks”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.