/// <summary> /// Launch app with args /// </summary> /// <param name="bootstrapper"></param> /// <param name="args"></param> public static void Launch(this Bootstrapper bootstrapper, params string[] args) { // setup service container ContainerLocator.Configure(bootstrapper.ContainerFactory); // Do auto register AutoRegister(ContainerLocator.Current, bootstrapper); // register service bootstrapper.ConfigureContainer?.Invoke(ContainerLocator.Current); // get app builder AppBuilder builder = bootstrapper.AppBuilderFactory(); // Configure App bootstrapper.ConfigureAppBuilder?.Invoke(builder); // start desktop App builder.StartWithClassicDesktopLifetime(args); }