コード例 #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);
        }