Beispiel #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);
            }
        }
Beispiel #2
0
 internal ServiceResult(CallCollector collector, Task <T> result)
 {
     this.collector = collector;
     this.result    = result;
 }
Beispiel #3
0
 protected CallCollector(CallCollector parent)
     : this()
 {
     this.Parent = parent;
 }
Beispiel #4
0
 internal CollectorScope(CallCollector collector)
 {
     this.collector = collector;
 }