Skip to content

Commit

Permalink
fix: #213 instructions for insecure endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamranjan committed Aug 24, 2024
1 parent 96f75b0 commit a0b9f7e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ Add using statement at the top of your class file
EtcdClient etcdClient = new EtcdClient("https://localhost:23790,https://localhost:23791,https://localhost:23792");
```

#### Insecure Endpoint
```C#
EtcdClient client = new EtcdClient("host1:port1:,...., hostN:portN", configureChannelOptions: (options =>
{
options.Credentials = ChannelCredentials.Insecure;
}));

// E.g.
EtcdClient etcdClient = new EtcdClient("http://localhost:23790,http://localhost:23791,http://localhost:23792", configureChannelOptions: (options =>
{
options.Credentials = ChannelCredentials.Insecure;
}));
```

### Client With user and password

```C#
Expand Down

0 comments on commit a0b9f7e

Please sign in to comment.