mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-05 11:25:20 +08:00
23 lines
410 B
C#
23 lines
410 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace MicaSetup.Design.Controls;
|
|
|
|
#pragma warning disable CS8618
|
|
|
|
public class HostBuilder : IHostBuilder
|
|
{
|
|
public IApp App { get; set; }
|
|
public ServiceProvider ServiceProvider { get; set; }
|
|
|
|
public IHostBuilder CreateApp()
|
|
{
|
|
App = new App();
|
|
return this;
|
|
}
|
|
|
|
public void RunApp()
|
|
{
|
|
App?.Run();
|
|
}
|
|
}
|