Skip to content

Commit

Permalink
Updated documentation and prepare for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansjones committed Apr 27, 2015
1 parent f3ba582 commit 030d72a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down Expand Up @@ -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**
Expand Down
5 changes: 5 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 030d72a

Please sign in to comment.