Table of Contents

Interface IEdgeLifecycle

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

A hub, not a platform abstraction: anything may raise, anything may observe. Raise methods complete when every observer has finished, so a platform bridge can await a WAL checkpoint before the OS suspends the app.

public interface IEdgeLifecycle

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.