Table of Contents

Class EdgeLifecycleHub

Namespace
Qavren.Edge.Lifecycle
Assembly
Qavren.Edge.Core.dll

Default IEdgeLifecycle. Observers run sequentially in registration order, each inside its own try/catch, so a throwing observer never reaches the raiser and never stops the ones behind it.

public sealed class EdgeLifecycleHub : IEdgeLifecycle
Inheritance
EdgeLifecycleHub
Implements
Inherited Members

Constructors

EdgeLifecycleHub(IEnumerable<IEdgeLifecycleObserver>, IOptions<EdgeOptions>, ILogger<EdgeLifecycleHub>, TimeProvider)

Creates the hub over the DI-registered observers.

Properties

RecentEvents

Most recent first, capped by LifecycleHistoryCapacity.

Methods

RaiseMemoryPressureAsync(EdgeMemoryPressure, CancellationToken)
RaiseResumedAsync(CancellationToken)
RaiseSleepingAsync(CancellationToken)
RaiseStoppingAsync(CancellationToken)