예제 #1
0
        public void Test1000(TraceContext traceContext, int additionalDelay)
        {
            TraceItem traceItem = traceContext.StartTraceItem();

            Thread.Sleep(1000 + additionalDelay);
            traceItem.Complete("Test1 " + additionalDelay);
        }
예제 #2
0
        public TraceItem StartTraceItem()
        {
            var traceItem = new TraceItem(Watcher);

            lock (TraceItemsList) {
                TraceItemsList.Add(traceItem);
            }
            return(traceItem);
        }