Skip to content
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

Adds support for buffered replies to skill dialog #3496

Merged
merged 3 commits into from
Mar 5, 2020

Conversation

gabog
Copy link
Contributor

@gabog gabog commented Mar 5, 2020

Fixes #3475

gabog added 2 commits March 4, 2020 13:45
Updated SkillConversationIdFactory in DialogRootBot to use the new methods.
Updated BotFrameworkHttpClient to restore RelatesTo after is done with it.
Namepsaced OAuthScopeKey key in BotAdapter to avoid collisions.
Updated SkillDialog to use new methods from ConversationIdFactory.
Updated MainDialog to set the property if present.
Copy link
Member

@johnataylor johnataylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one minor comment - about the send loop

if (activity.DeliveryMode == DeliveryModes.BufferedReplies && response.Body.Any())
{
// Process replies in the response.Body.
foreach (var fromSkillActivity in response.Body)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: couple of minor things:

  • technically the eoc must be the last activity in the list right? (therefore you could just check the last element of the collection)
  • and you could perhaps make use of the Send (array) overload on the turnContext. for example if the collection didn't finish with the eoc you just send the lot.

anyhow not clearer that these make for clearer code - so as I say just a nit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SkillDialog needs to handle DeliveryMode BufferedReplies correctly
2 participants