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)
- C#
- VB
- F#
public sealed class AutoSuspendHelper : IEnableLogger,
IDisposable
Public NotInheritable Class AutoSuspendHelper
Implements IEnableLogger, IDisposable
[<SealedAttribute>]
type AutoSuspendHelper =
class
interface IEnableLogger
interface IDisposable
end
Inheritance | Object → AutoSuspendHelper |
Implements | IEnableLogger, 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) |