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