Skip to content

Commit e716b93

Browse files
committed
Update the wrong message handler example
1 parent cfd71db commit e716b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/v107/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ mockHttp.When("http://localhost/api/user/*")
216216
.Respond("application/json", "{'name' : 'Test McGee'}"); // Respond with JSON
217217
218218
// Instantiate the client normally, but replace the message handler
219-
var client = new RestClient(...) { ConfigureMessageHandler = _ => mockHttp };
219+
var client = new RestClient(new RestClientOptions { ConfigureMessageHandler = _ => mockHttp });
220220

221221
var request = new RestRequest("http://localhost/api/user/1234");
222222
var response = await client.GetAsync(request);

0 commit comments

Comments
 (0)