I used to set the Timeout when creating the JsonServiceClient but now I use the IServiceClient interface with the JsonHttpClient and I can't find a similar way to set it. The JsonHttpClient has a member HttpClient but this one is not instantiated when the JsonHttpClient is created...
Can someone help? I do not want to have to set the timeout before every request I will do.
I have tried to set it using a GlobalRequestFilter but I am not sure what to set in there on the req object.
You can get the HttpClient that's used with:
var httpClient = client.GetHttpClient();
Which you can use to set any configuration you need:
httpClient.Timeout = ...;