public static void Worker_NextTimeScheduledItem(this TraceSource source, System.String workerName, System.DateTimeOffset dueTime) { var shouldUseTraceSource = source != null; var shouldUseEventSource = Impl.ShouldTraceWorker_NextTimeScheduledItem; if (shouldUseTraceSource || shouldUseEventSource) { var arg0 = workerName; var arg1 = dueTime.ToTraceString(); if (shouldUseTraceSource) { source.TraceEvent(TraceEventType.Verbose, 2, "Worker '{0}' next time scheduled item due at '{1}'.", arg0, arg1); } if (shouldUseEventSource) { Impl.Instance.Worker_NextTimeScheduledItem(arg0, arg1); } } }