Skip to content

Commit 7b7950b

Browse files
authored
Fixed the Simple Factory example. Fixes #2255 (#2256)
1 parent 777bf19 commit 7b7950b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docs/usage/client.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ Constructor parameters to configure the `HttpMessageHandler` and default `HttpCl
5656
You need to set the `useClientFactory` parameter to `true` in the `RestClient` constructor to enable the factory.
5757

5858
```csharp
59-
var client = new RestClient("https://api.twitter.com/2", true);
59+
var options = new RestClientOptions("https://api.twitter.com/2");
60+
var client = new RestClient(options, useClientFactory: true);
6061
```
6162

6263
## Reusing HttpClient

0 commit comments

Comments
 (0)