protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var bootstrapper = new WpfAppBootstrapper(); bootstrapper.SetupApplication(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); _bootstrapper = new WpfAppBootstrapper(Environment.GetCommandLineArgs().Skip(1).ToArray(), Assembly.GetEntryAssembly().Location.ToAbsoluteFilePath().ParentDirectoryPath); _bootstrapper.Configure(); if (_bootstrapper.CommandMode) HandleSingleInstance(); _cmBs = new CMBootstrapper<string>(_bootstrapper); TaskExt.StartLongRunningTask(StartupInternal).WaitSpecial(); }