public static string DiagName(this ICall call, DiagContextInternal ctx) { var substituteId = call.Target().SubstituteId(ctx); var callArgs = call.FormatArgs(ctx); var signature = call.GetMethodInfo().DiagName(); return($"<[{substituteId}].{callArgs} Signature: {signature}>"); }
public object Route(ICall call) { Trace($"Route(call: {call.DiagName(_ctx)})"); Log($"[Received call] " + $"Substitute: {call.Target().SubstituteId(_ctx)} " + $"Call: {call.FormatArgs(_ctx)} " + $"Signature: {call.GetMethodInfo().DiagName()} " + $"Argument specifications: {call.GetArgumentSpecifications().Print(s => s.DiagName())}"); using (new LoggingScope()) { return(_impl.Route(call)); } }