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