| | |
| | | return action; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 添加一个ApiAction的历史记录 |
| | | /// </summary> |
| | | /// <param name="action"></param> |
| | | public override void AddHistory<T>(Microsoft.AspNetCore.Http.HttpRequest request, ApiAction<T> action) |
| | | { |
| | | var his = action.History(); |
| | | //his.TraceDic.Add("CurReqType", CurReqType); |
| | | //his.TraceDic.Add("CurInv", CurInv); |
| | | //his.TraceDic.Add("req", req); |
| | | //his.TraceDic.Add("toMes", toMes); |
| | | //his.TraceDic.Add("CurPoolList", CurPoolList); |
| | | //his.TraceDic.Add("isComplete", his_isComplete); |
| | | //ActionHistoryList.Add($"{request.HttpContext.TraceIdentifier} at {action.Timestamp:yyyy/MM/dd HH:mm:ss.fff}: {request.Path}", his); |
| | | LastActionTime = DateTime.Now; |
| | | } |
| | | |
| | | #endregion Functions |
| | | |
| | | public override bool Close(bool needSaveHistoryLog = false) |