示例#1
0
 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();
 }
示例#2
0
 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();
 }