/// <summary> /// Initializes a new instance of the <see cref="ShardedDocumentStore"/> class. /// </summary> /// <param name="shardStrategy">The shard strategy.</param> /// <param name="shards">The shards.</param> public ShardedDocumentStore(IShardStrategy shardStrategy, Shards shards) { if (shards == null || shards.Count == 0) { throw new ArgumentException("Must have one or more shards", "shards"); } if (shardStrategy == null) { throw new ArgumentException("Must have shard strategy", "shardStrategy"); } this.shardStrategy = shardStrategy; this.shards = shards; }