兼容旧版,Message字段已废弃
This commit is contained in:
parent
7b096108b6
commit
d24d2945d7
|
@ -441,6 +441,9 @@ public class JobService(AppService appService, ICacheProvider cacheProvider, ITr
|
|||
task.Cost = (Int32)Math.Round(result.Cost / 1000d);
|
||||
task.Key = result.Key;
|
||||
task.Remark = result.Remark;
|
||||
#pragma warning disable CS0612 // 类型或成员已过时
|
||||
if (result.Remark.IsNullOrEmpty()) task.Remark = result.Message; // 兼容旧版,Message字段已废弃
|
||||
#pragma warning restore CS0612 // 类型或成员已过时
|
||||
|
||||
var traceId = result.TraceId ?? DefaultSpan.Current + "";
|
||||
// 已终结的任务,汇总统计
|
||||
|
|
|
@ -37,6 +37,10 @@ public partial class TaskResult : ITaskResult
|
|||
/// <summary>链路追踪</summary>
|
||||
public String TraceId { get; set; }
|
||||
|
||||
/// <summary>消息内容。异常信息或其它任务消息</summary>
|
||||
[Obsolete]
|
||||
public String Message { get; set; }
|
||||
|
||||
/// <summary>消息内容。异常信息或其它任务消息</summary>
|
||||
public String Remark { get; set; }
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue