-
Notifications
You must be signed in to change notification settings - Fork 479
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
added timeout options for qna & luis for dotnet #1635
Conversation
Pull Request Test Coverage Report for Build 53576
💛 - Coveralls |
|
@Zerryth Could you resolve the merge conflicts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should sync and review the usage of the HttpClient as you've coded it. I suspect we'll want to revisit the pattern, as the way you've written this may have some fairly major downstream performance implications.
|
@johnataylor - Earlier today, you said you've been through this PR. Can you approve or suggest changes you would like to see? |
Part 2 of 2 PRs to fix microsoft/botframework-sdk#5196
Description
LuisRecognizer
andQnAMaker
- dotnetHttpClient
, set timeout default to 100000 milliseconds"
in docs ofIBotTelemetryClient
Specific Changes
LuisRecognizer
Timeout
property toLuisPredictionOptions
LuisRecognizer
now exposes aDefaultHttpClient
property to set a default HttpClient for requests, as well as to expose for testingServiceClientCredentials
,HttpClient
,HttpClientHandler
, andLuisDelegatingHandler
changes toLUISRuntimeClient
, used MsRest'sCreateRootHandler()
andCreateHttpHandlerPipeline()
to createHttpClient
to send toLUISRuntimeClient
constructor insideLuisRecognizer
cosntructorQnAMaker
QnAMakerOptions
now has optionalTimeout
propertyQnAMaker
class constructor will now assignDefaultHttpClient
to_httpClient
field if noHttpClient
arg is providedTimeout
without having to pass in their customHttpClient
HttpClient
intoQnAMaker
constructor, then it will take the timeout value set inHttpClient
DefaultHttpClient
is public to expose for testing