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)

Raises MemoryPressure at the given level to every registered IEdgeLifecycleObserver and awaits them all.

RaiseResumedAsync(CancellationToken)

Raises Resumed to every registered IEdgeLifecycleObserver and awaits them all.

RaiseSleepingAsync(CancellationToken)

Raises Sleeping to every registered IEdgeLifecycleObserver and awaits them all.

RaiseStoppingAsync(CancellationToken)

Raises Stopping to every registered IEdgeLifecycleObserver and awaits them all.