ข้ามไปยังเนื้อหา

Class EngineWebApplicationExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

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

Maps the operator-facing HTTP surface exposed by a Cephalon ASP.NET Core host.

public static class EngineWebApplicationExtensions

objectEngineWebApplicationExtensions

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

Maps Cephalon runtime, diagnostics, transport, and documentation endpoints onto the application.

public static WebApplication MapCephalon(this WebApplication app)

app WebApplication

The ASP.NET Core application to extend.

WebApplication

The same application instance for fluent host composition.

This method maps the engine introspection surface under /engine, health and diagnostics endpoints, and the routes contributed by the transports selected in the runtime manifest.

When the REST transport is active, it also enables OpenAPI and Scalar documentation while keeping non-REST protocol routes out of the generated API description.