Class EdgeHost
Default IEdgeHost: one-shot, ordered, fault-latching startup.
public sealed class EdgeHost : IEdgeHost, IDisposable
- Inheritance
-
EdgeHost
- Implements
- Inherited Members
Constructors
- EdgeHost(IEnumerable<IEdgeStartupTask>, IEdgeLifecycle, ILogger<EdgeHost>, TimeProvider)
Creates the host over the DI-registered startup tasks.
Properties
- Started
Completes when every startup task has finished; faults with the first failure.
- StartupReports
Startup task outcomes, for IEdgeDiagnostics.
Methods
- Dispose()
Nothing owned yet; present so container disposal has a hook when components register one.
- EnsureStartedAsync(CancellationToken)
Calls Start() if needed, awaits Started, and rethrows its fault.
- Start()
Begins startup exactly once. Safe to call repeatedly and from any thread. Never blocks.
- StopAsync(CancellationToken)
Raises
Stoppingon the lifecycle hub and disposes owned resources.