Beispiel #1
0
 public DatacenterReplicationFactor(string datacenter, ReplicationFactor replicationFactor)
 {
     Datacenter        = datacenter ?? throw new ArgumentNullException(nameof(datacenter));
     ReplicationFactor = replicationFactor;
     _hashCode         = DatacenterReplicationFactor.ComputeHashCode(Datacenter, ReplicationFactor);
 }
Beispiel #2
0
 private static int ComputeHashCode(string datacenter, ReplicationFactor replicationFactor)
 {
     return(Utils.CombineHashCode(new object[] { datacenter, replicationFactor }));
 }
 public SimpleStrategy(ReplicationFactor replicationFactor)
 {
     _replicationFactor = replicationFactor;
 }