Inno.Editor.Hosting
Section titled “Inno.Editor.Hosting”
- Explicit Editor product composition, preflight, default layout and complete host retirement.
Explicit Editor product composition, preflight, default layout and complete host retirement.
Read the linked task or ownership explanation before using the exact API below.
Compose through the public entry
Section titled “Compose through the public entry”Compose and retire an Editor host describes explicit launch options, pre-cancellation, configuration validation, product dependency ownership and lifecycle smoke limits. EditorApplication.RunAsync is the entry; EditorHost remains private. Hosting does not select a default platform/backend or standard distribution.
The shared EditorProduct.props owns built-in features/panels/presentation closure, including attribute-discovered extensions. Platform products import it. Hosting references cannot be replaced with runtime directory scanning or artificial type anchors.
Preserve user state and ownership
Section titled “Preserve user state and ownership”The embedded default layout initializes only projects without an existing editor.ini. It is a dock layout, not another workspace or a container for transient selection/history/modal state. Borrowed catalogs/configuration remain caller-owned; factory-created engine/session/device/task/callback resources transfer to the host.
Shutdown drains tasks, unregisters callbacks, saves state/layout and retires resources before windows/Native owners. A product-resource log alone does not certify full device disposal or process exit. Exceptions and Pending/Faulted retirement remain visible.
Executable usage
Section titled “Executable usage”Supply existing live dependencies on the declared API surface. Compiling the example does not initialize a product or certify a physical device.
using System.Threading;using System.Threading.Tasks;using Inno.Editor.Hosting;
static Task<int> Run(EditorLaunchOptions options, CancellationToken cancellation){ return EditorApplication.RunAsync(options, cancellation);}Source boundary
Section titled “Source boundary”The source project defines the selected host declarations. Script projection and platform execution require their separate evidence.
API reference
Section titled “API reference”Types and exact member contracts preserve captured declarations and source XML.
Source project facts
Section titled “Source project facts”Project: Inno.Editor.Hosting
Source: src/composition/editor/hosting/Inno.Editor.Hosting/Inno.Editor.Hosting.csproj
| Type | API | Description |
|---|---|---|
| EditorApplication | engine | Runs the shared Editor product with explicitly supplied platform and publication composition. |
| EditorCommandLineOptions | engine | Parses the shared Editor project and verification workflow before platform composition starts. |
| EditorLaunchOptions | engine | Supplies product-owned composition to the shared Editor lifecycle without selecting a platform or backend. |