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

Hosts

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

A host wraps your app’s process. Cephalon ships two: an ASP.NET Core host (HTTP-flavoured) and a worker host (no HTTP). The HTTP host has additional adapter packages for non-REST transports.

Click any package name to jump to its source-doc (canonical per-package detail).

PackageNuGet IDMaturityCapabilityWhat it ships
ASP.NET CoreCephalon.AspNetCoreM3HttpHostThe HTTP host adapter — REST, SSE, WebSocket. Wires MapCephalon() + /engine/manifest + ProblemDetails.
GraphQLCephalon.AspNetCore.GraphQLM3GraphQLHostGraphQL adapter on top of the HTTP host. Uses HotChocolate.
gRPCCephalon.AspNetCore.GrpcM3GrpcHostgRPC adapter. Generated .proto → behavior wiring.
JSON-RPCCephalon.AspNetCore.JsonRpcM3JsonRpcHostJSON-RPC 2.0 adapter.
WorkerCephalon.WorkerM3WorkerHostHeadless IHostedService-style host for background workloads.
ScenarioPackages
REST API onlyCephalon.AspNetCore
REST + GraphQL+ Cephalon.AspNetCore.GraphQL
REST + gRPC+ Cephalon.AspNetCore.Grpc
REST + JSON-RPC+ Cephalon.AspNetCore.JsonRpc
Multiple transports (REST + gRPC + GraphQL)All three adapter packages
Headless worker (no HTTP)Cephalon.Worker
Worker that also exposes /healthCephalon.AspNetCore + Cephalon.Worker
appsettings.json
{
"Engine": {
"Transports": ["RestApi", "Grpc", "GraphQL"] // which adapters are active
}
}
Engine:Transports valueRequires package
"RestApi"Cephalon.AspNetCore
"GraphQL"Cephalon.AspNetCore.GraphQL
"Grpc"Cephalon.AspNetCore.Grpc
"JsonRpc"Cephalon.AspNetCore.JsonRpc
"ServerSentEvents"Cephalon.AspNetCore
"WebSocket"Cephalon.AspNetCore

Routes auto-registered by Cephalon.AspNetCore

Section titled “Routes auto-registered by Cephalon.AspNetCore”
PathPurpose
GET /engine/manifestEngine + modules manifest (capabilities, versions).
GET /engine/snapshotResolved configuration as the engine sees it.
GET /healthStandard ASP.NET Core health endpoint with module probes.
GET /openapi/v1.jsonOpenAPI spec (if module has REST behaviors).

Module-defined routes layer on top via app.MapCephalon().