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)); }
public AppLoaderFailedEventArgs(AppLoadingException e) { Exception = e; }