예제 #1
0
        private CallCollector CreateChildCollector()
        {
            if (isCollectionCompleted)
            {
                throw new InvalidOperationException("Do not use the CreateChildCollector method after the collector has been marked as Completed.");
            }

            lock (childrenLocker)
            {
                var child = new CallCollector(this);
                this.children.Add(child);
                return(child);
            }
        }
예제 #2
0
 internal ServiceResult(CallCollector collector, Task <T> result)
 {
     this.collector = collector;
     this.result    = result;
 }
예제 #3
0
 protected CallCollector(CallCollector parent)
     : this()
 {
     this.Parent = parent;
 }
예제 #4
0
 internal CollectorScope(CallCollector collector)
 {
     this.collector = collector;
 }