Skip to content

Setting the timeout on BinaryHttpDomainClient #457

Answered by Daniel-Svensson
westwok asked this question in Q&A
Discussion options

You must be logged in to vote

Have a look at the httpclient documentation it also includes hints about additional timeouts being exposed by the SocketsHttpClientHandler https://learn.microsoft.com/en-us/dotnet/api/system.net.http.socketshttphandler?view=net-7.0#properties

Setup the client handler with your settings and pass it to the constructor (either directly or by using it in a func).

If you need something super advanced you can criteria you own httphandler which chooses between different client handlers based on url.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Daniel-Svensson
Comment options

Answer selected by Daniel-Svensson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants