Closed vishwacsena closed 4 years ago
Here is what i found after debugging into it.
The bot fails at getting languageGeneratorManager from dialogContext.Services
line 41 result in null after excecution.
The reason LanguageGenratorManager is not dc.Services is that in DialogContext.Child.Get
this samples hits line 114, and this Container.CreateChildrenContext won't inherit the Services from parent dc.
Underhood, line 114, will call CreateChildrenContext in ComponentDialog.CreateChildrenContext, inside, it will call createInnerDc, and calls new DialogContext which created a new dc with previous dc's Services.
The proper fix to me is to inherit Services in this case, either fix in CreateChildrenContext or inside CreateInnerDc will probably work.
During the debugging process, i found it's somewhat confusing how those dc are organized toghether. Especially when i saw
cc @tomlm
Version
Latest master
Describe the bug
This sample used to work but I no longer know how to get a V4 waterfall/ custom dialog based bot to work with adaptive dialogs.
To Reproduce
Expected behavior
Bot works E2E.
[bug]