diff --git a/README.md b/README.md index bf5f589..a4981a6 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,19 @@ Get it on NuGet: var client = Draft.Etcd.ClientFor(new Uri("http://localhost:4001")); ``` +**Initialize the Client with multiple endpoints** +```cs +var endpointPool = await Draft.Endpoints.EndpointPool.Build() + .WithRoutingStrategy(Draft.Endpoints.EndpointRoutingStrategy.RoundRobin) + .WithVerificationStrategy(Draft.Endpoints.EndpointVerificationStrategy.All) + .VerifyAndBuild( + new Uri("http://localhost:4001"), + new Uri("http://localhost:4002"), + new Uri("http://localhost:5002") + ); +var client = Draft.Etcd.ClientFor(endpointPool); +``` + ## Key based operations ## **Set a key** @@ -127,7 +140,10 @@ var leader = await client var memberInfo = await client .Cluster .CreateMember() - .WithPeerUri(new Uri("http://localhost:4002"), new Uri("http://localhost:5002")); + .WithPeerUri( + new Uri("http://localhost:4002"), + new Uri("http://localhost:5002") + ); ``` **Remove a cluster member** diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 8b569c4..53a3d4f 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,3 +1,8 @@ +### New in 0.2.0 (Released 2015/04/26) +* New: Support for multiple etcd endpoints + * Includes verifying endpoint availability + * Includes mechanisms for calling different endpoints + ### New in 0.1.1 (Released 2015/03/15) * Fixed: Passing `false` into `WithExisting` is no longer ignored and results in `prevExist=false` being passed in the call. * Fixed: Misuse of the `waitIndex` parameter during `Watch`/`WatchOnce` calls. Now will increment value passed to `WithModifiedIndex` until the value matches what is returned in the `X-Etcd-Index` header.