Third party DI containers
class App
{
public App()
{
var host = new HostBuilder()
.AddRadicalApplication<Presentation.MainView>()
.Build();
Startup += async (s, e) =>
{
await host.StartAsync();
};
Exit += async (s, e) =>
{
using (host)
{
await host?.StopAsync();
}
};
}
}Last updated