Esempio n. 1
0
 public static void End()
 {
     Status = AdhesiveFrameworkStatus.Ending;
     LocalLoggingService.Info("AdhesiveFramework开始清理...");
     bootstrapper.Dispose();
     Status = AdhesiveFrameworkStatus.Ended;
     LocalLoggingService.Info("AdhesiveFramework清理完成!");
     LocalLoggingService.Close();
 }
Esempio n. 2
0
 public static void Start()
 {
     Status = AdhesiveFrameworkStatus.Starting;
     LocalLoggingService.Info("AdhesiveFramework开始启动...版本号:{0}", Version);
     bootstrapper = new Bootstrapper(container);
     if (bootstrapper.Execute())
     {
         Status = AdhesiveFrameworkStatus.Started;
         LocalLoggingService.Info("AdhesiveFramework启动完成!...版本号:{0}", Version);
     }
     else
     {
         Status = AdhesiveFrameworkStatus.FailedToStart;
         throw new Exception("AdhesiveFramework启动失败!");
     }
 }