-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce AbpHttpClientBuilderOptions & Remove AbpHttpClientOptions.HttpClientActions #5304
Comments
I am use ABP 3.0.3. It do not have AbpHttpClientOptions class. I have to what to do to increase timeout? |
Upgrade Your abp to the 3.2+. |
I configed timeout. However it is failed. The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AbpHttpClientOptions.HttpClientActions
was not properly designed and implemented. So, removed it in favor ofAbpHttpClientBuilderOptions.ProxyClientBuildActions
configureHttpClientBuilder
option fromAddHttpClientProxies
method since it was inconsistent.These are breaking changes but I am including it to version 3.2, because they had already problems and they have never been documented.
The proper way to configure HTTP Clients for dynamic c# proxies should be done in the
PreConfigureServices
method of your module, like the sample below:remoteServiceName
can be used to check and configure different service proxies differently.clientBuilder
(type:IHttpClientBuilder
) is flexible to make any configuration, including Polly extension methods like done in the example.This example is actually the default configuration (retry 3 times) for all client proxies. If you don't want it, just use
options.ProxyClientBuildActions.Clear()
in the PreConfigure.The text was updated successfully, but these errors were encountered: