Skip to main content

SetupWithLifetime Method

Sets up the platform-specific services for the application and initialized it with a particular lifetime, but does not run it.

Definition​

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

public AppBuilder SetupWithLifetime(
IApplicationLifetime lifetime
)

Parameters​

  IApplicationLifetime

Return Value​

AppBuilder

See Also​

Reference​

AppBuilder Class
Avalonia Namespace