public static MonitoredScope NewFormat(string format, object arg0, object arg1, object arg2) { if (!MonitoredScope.TraceMonitoredScope) { return(MonitoredScope.dummyInstance); } return(MonitoredScope.New(string.Format(CultureInfo.InvariantCulture, format, arg0, arg1, arg2))); }
public static MonitoredScope NewConcat(string arg0, object arg1) { if (!MonitoredScope.TraceMonitoredScope) { return(MonitoredScope.dummyInstance); } if (arg1 != null) { return(MonitoredScope.New(arg0 + arg1)); } return(MonitoredScope.New(arg0)); }