public sealed class PresentationLifetime : IAsyncDisposable Owns one presentation generation, drains admitted operations and releases acquired resources.
Constructors
Properties
HasOwner
public bool HasOwner { get; } Whether the verified owner is currently available.
IsClosing
public bool IsClosing { get; } Whether shutdown has started.
Shutdown
public CancellationToken Shutdown { get; } Signals shutdown before admitted operations are drained.
Methods
StopAsync
public ValueTask StopAsync() Starts shutdown and awaits operation drain and resource cleanup.
TryBeginOperation
public IDisposable? TryBeginOperation() Admits work until shutdown; disposing the token signals that work and cleanup have finished.