Skip to content

Commit

Permalink
Fixed the Simple Factory example. Fixes #2255 (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
snechaev authored Aug 29, 2024
1 parent 777bf19 commit 7b7950b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/usage/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ Constructor parameters to configure the `HttpMessageHandler` and default `HttpCl
You need to set the `useClientFactory` parameter to `true` in the `RestClient` constructor to enable the factory.

```csharp
var client = new RestClient("https://api.twitter.com/2", true);
var options = new RestClientOptions("https://api.twitter.com/2");
var client = new RestClient(options, useClientFactory: true);
```

## Reusing HttpClient
Expand Down

0 comments on commit 7b7950b

Please sign in to comment.