Beispiel #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            MiniBootConfig config = new MiniBootConfig();

            if (config.SetConfig(e.Args))
            {
                MiniBootstrapper boot = new MiniBootstrapper(config);
                boot.Run();
            }
            else
            {
                throw new Exception("启动参数无效");
            }
        }
Beispiel #2
0
 public MiniBootstrapper(MiniBootConfig config)
 {
     _config = config;
 }