-
Notifications
You must be signed in to change notification settings - Fork 558
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
Timeout issue? (how to configure web service client). #2507
Comments
@lerudiconsulting thanks for raising the issue. @mlacouture can you see what we need to change in the connected service generated code to make the configuration (programmatically) easier/possible. |
Hi @zhenlan! Thanks for taking action on this! Much appreciated! Look forward to the implementation! Any projection on when this is due? Cheers! /Peter |
Hi again @zhenlan, Am I to understand that there is a programmatic way of altering these values, only not a simplified way? If there is a codified way (even if it is not very simple) of doing this while I hold for the fix, I would appreciate it if someone shared this info with me. Thanks again in advance! /Peter |
As you may know, .NET Core does not support configuration files so binding configuration needs to be done in code. The generated proxy code provides a configuration partial method for this purpose, for example: assuming your client class is named
I hope this resolves your problem. |
@lerudiconsulting, please let us know if you need anything else. Closing for now. |
@lerudiconsulting , I am having the same issue. Were you able to increase your timeout inside ConfigureEndpoint as mentioned by @zhenlan ? If so would you mind sharing full solution? Thx.. |
@lerudiconsulting, did you try setting the timeouts exposed by the |
I tried this without success:
Are there other timeout properties I am missing? In issue #2368 @mconnew has a solution with a gist.
|
Hi @ttugates. Yes, I would expect that to work (no need for the WinHttpHandler timeouts. What error do you get? |
I get: Right around the 31 sec mark of starting the request. |
Hi,
I am consuming a slow connected service and thus simply need to increase the timeout. In previous versions of .NET I could simply adjust timeout settings in the bindings in web.config, however, in ASP.NET Core 2 I cannot find the way to do this. Can you perhaps elaborate on how to do this as all I have found so far are unclosed issues related to this type of question?
Thanks in advance for your help!
/Peter
The text was updated successfully, but these errors were encountered: