Class AppBuilder
A builder to create an App instance with required services.
Inherited Members
Namespace: Unity.AppUI.MVVM
Assembly: Unity.AppUI.MVVM.dll
Syntax
public class AppBuilder
Properties
services
The services of the application.
Declaration
public IServiceCollection services { get; }
Property Value
| Type | Description |
|---|---|
| IServiceCollection |
Methods
BuildWith(IHost)
Build and initialize the app with the given host.
Declaration
public IApp BuildWith(IHost host)
Parameters
| Type | Name | Description |
|---|---|---|
| IHost | host | The host to use. |
Returns
| Type | Description |
|---|---|
| IApp | The built app instance. |
InstantiateWith<T>()
Instantiates a new AppBuilder with the default services according to the given App type.
Declaration
public static AppBuilder InstantiateWith<T>() where T : class, IApp
Returns
| Type | Description |
|---|---|
| AppBuilder | The instantiated AppBuilder. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the app to build. It is expected that this type is a subclass of App. |