Table of Contents

Interface IEdgeHost

Namespace
Qavren.Edge.Hosting
Assembly
Qavren.Edge.Core.dll

Owns one-time startup. Every Qavren.Edge service entry point calls EnsureStartedAsync(CancellationToken) first, so a startup failure surfaces on first use with its real cause and no caller ever races migrations.

public interface IEdgeHost

Properties

Started

Completes when every startup task has finished; faults with the first failure.

Methods

EnsureStartedAsync(CancellationToken)

Calls Start() if needed, awaits Started, and rethrows its fault. From inside an IEdgeStartupTask it returns at once instead of waiting on the task that called it: the tasks ordered before the caller have completed, the ones after it have not.

Start()

Begins startup exactly once. Safe to call repeatedly and from any thread. Never blocks.

StopAsync(CancellationToken)

Raises Stopping on the lifecycle hub and disposes owned resources.