Пример #1
0
 protected virtual void OnError(string msg, AppLoadingException e)
 {
     Logger.Warn($"can't load application: {msg}");
     Logger.Warn($"message: {e.InnerException}");
     Logger.Warn($"source: {e.InnerException.Source}");
     Logger.Warn($"stack_trace: {e.InnerException.StackTrace}");
     Thread.Sleep(200);//至少等待日志被写入到文件中
     Failed?.Invoke(this, new AppLoaderFailedEventArgs(e));
 }
Пример #2
0
 public AppLoaderFailedEventArgs(AppLoadingException e)
 {
     Exception = e;
 }