public RoutingTable(IConsistentHashGenerator hashGenerator, IList <NodeInfo> nodes) { Throw.IfNull(nodes, nameof(nodes)); Throw.IfNull(hashGenerator, nameof(hashGenerator)); this.nodes = nodes; this.hashGenerator = hashGenerator; }
public RoutingTable(IConsistentHashGenerator hashGenerator, IList <NodeInfo> nodes) { this.nodes = nodes ?? throw new ArgumentNullException(); this.hashGenerator = hashGenerator ?? throw new ArgumentNullException(); }
public RoutingTable(IConsistentHashGenerator hashGenerator) : this(hashGenerator, new List <NodeInfo>()) { }