/// <summary> /// 服务错误触发事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Server_Error(object sender, ErrorEventArgs e) { ErrorLoger loger = new ErrorLoger(); loger.Write(e.Error); //写入错误日志 ServicesProvider.Items.ErrorLogService.AddLog(e.Error, e.Tag); }