public SimpleSharding()
		{
			var client1 = NewClient(0);
			var client2 = NewClient(1);
			shardedClient = new ShardedRavenFileSystemClient(new ShardStrategy(new Dictionary<string, RavenFileSystemClient>
				{
					{"1", client1},
					{"2", client2},
				}));
		}
Example #2
0
        public SimpleSharding()
        {
            var client1 = NewClient(0, fileSystemName: "shard1");
            var client2 = NewClient(1, fileSystemName: "shard2");

            shardedClient = new ShardedRavenFileSystemClient(new ShardStrategy(new Dictionary <string, RavenFileSystemClient>
            {
                { "1", client1 },
                { "2", client2 },
            }));
        }