Ejemplo n.º 1
0
 /// <summary>
 /// 1. 解析系统的配置文件
 /// 2. 根据配置文件进行预安装
 /// 3. 预安装完后启动默认的app
 /// </summary>
 /// <param name="runtime"></param>
 public override void Boot(XAppManagement appManagement)
 {
     if (this.isPreInstallRequired)
     {
         //预安装,预安装完成启动DefaultApp
         //FIXME:异步处理
         XPreInstallListener listener = new XPreInstallListener(appManagement);
         XPreinstalledAppBatchInstaller preinstalledinstall = new XPreinstalledAppBatchInstaller(appManagement, listener);
         preinstalledinstall.Install();
     }
     else
     {
         //start defaultApp
         string StartParams = XStartParams.GetStartParams();
         appManagement.StartDefaultApp(XStartParams.Parse(StartParams));
     }
 }
 public XPreinstalledAppBatchInstaller( XAppManagement ams, XPreInstallListener listener)
     : base(ams, listener)
 {
 }
Ejemplo n.º 3
0
 public XStartAppInstaller(XAppManagement ams, XPreInstallListener listener)
 {
     preInsallListener = listener;
     this.ams = ams;
 }