Skip to main content

AutoSuspendHelper Class

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.

Definition

Namespace: Avalonia.ReactiveUI
Assembly: Avalonia.ReactiveUI (in Avalonia.ReactiveUI.dll)

public sealed class AutoSuspendHelper : IEnableLogger, 
IDisposable
View Source
InheritanceObject → AutoSuspendHelper
ImplementsIEnableLogger, IDisposable

Constructors

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

Methods

Dispose()Disposes internally stored observers.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
OnFrameworkInitializationCompleted()Call this method in your App.OnFrameworkInitializationCompleted method.
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.ReactiveUI Namespace