public Topology GetTopology() { lock (this) { if (this.queue.Count > 0) { return(this.queue.Dequeue()); } return(config.Build(this)); } }