示例#1
0
 public override string ToString()
 {
     if (Exception == null)
     {
         return($"Request Type:{RequestTypeName}. Input Value: {ContextBase.TrySerializerFunc(RequestData)} OutputValue: {ContextBase.TrySerializerFunc(Output)}");
     }
     else
     {
         return
             ($"TraceID: {ContextBase.TraceID.ToString()} Request Type:{RequestTypeName}. Input Value: {ContextBase.TrySerializerFunc(RequestData)} Exception: {Exception?.Message}");
     }
 }
示例#2
0
 public override string ToString()
 {
     return
         ($"TraceID: {ContextBase.TraceID.ToString()} Request Type:{RequestTypeName}. Input Value: {ContextBase.TrySerializerFunc(RequestData)} Time: {ExecutionTimeInMillisecond}ms");
 }