public DefaultShardResolutionStrategy(IEnumerable<string> shardIds, ShardStrategy shardStrategy)
 {
     this.shardStrategy = shardStrategy;
     ShardIds = new List<string>(shardIds);
     if (ShardIds.Count == 0)
         throw new ArgumentException("shardIds must have at least one value", "shardIds");
 }
 public DefaultShardResolutionStrategy(IEnumerable <string> shardIds, ShardStrategy shardStrategy)
 {
     this.shardStrategy = shardStrategy;
     ShardIds           = new List <string>(shardIds);
     if (ShardIds.Count == 0)
     {
         throw new ArgumentException("shardIds must have at least one value", "shardIds");
     }
 }
		public ShardedRavenFileSystemClient(ShardStrategy strategy)
		{
			ShardStrategy = strategy;
			ShardClients = strategy.Shards;
		}
Ejemplo n.º 4
0
 public ShardedRavenFileSystemClient(ShardStrategy strategy)
 {
     ShardStrategy = strategy;
     ShardClients  = strategy.Shards;
 }