Ejemplo n.º 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}");
     }
 }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return
         ($"TraceID: {ContextBase.TraceID.ToString()} Request Type:{RequestTypeName}. Input Value: {ContextBase.TrySerializerFunc(RequestData)} Time: {ExecutionTimeInMillisecond}ms");
 }