AutoSuspendHelper Class

Summary

A ReactiveUI AutoSuspendHelper which initializes suspension hooks for Avalonia applications. Call its constructor in your app's composition root, before calling the RxApp.SuspensionHost.SetupDefaultSuspendResume method.
Namespace
Avalonia.ReactiveUI
Interfaces
  • IDisposable
Base Types
  • IEnableLogger
graph BT Type-->Base0["IEnableLogger"] Type-.->Interface0["IDisposable"] Type["AutoSuspendHelper"] class Type type-node

Syntax

public sealed class AutoSuspendHelper : IEnableLogger, IDisposable

Constructors

Name Summary
AutoSuspendHelper(IApplicationLifetime) Initializes a new instance of the AutoSuspendHelper class.

Methods

Name Value Summary
Dispose() void
Disposes internally stored observers.
OnFrameworkInitializationCompleted() void
Call this method in your App.OnFrameworkInitializationCompleted method.