public void Test1000(TraceContext traceContext, int additionalDelay) { TraceItem traceItem = traceContext.StartTraceItem(); Thread.Sleep(1000 + additionalDelay); traceItem.Complete("Test1 " + additionalDelay); }
public TraceItem StartTraceItem() { var traceItem = new TraceItem(Watcher); lock (TraceItemsList) { TraceItemsList.Add(traceItem); } return(traceItem); }