We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
In my Bot project. i need to check that the user is connected in every task related to an intent.
i am using LUIS, and AuthBot V2
my problem is that the login message fire only in one task. when i say HELLO.
by in another intent "HELP", the login message doesn't fire.
here is my code & result :
public class RootDialog : LuisDialog<object> { [LuisIntent("Help")] public async Task Help(IDialogContext context, IAwaitable<IMessageActivity> activity, LuisResult result) { var message = await activity; //CheckLogin if (string.IsNullOrEmpty(await context.GetAccessToken(AuthSettings.Scopes))) { await context.Forward(new AzureAuthDialog(AuthSettings.Scopes), this.ResumeAfterAuth, message, CancellationToken.None); } else { await context.PostAsync($"hi " + getUser(context).UserName); context.Wait(this.MessageReceived); } } [LuisIntent("Welcome")] public async Task Welcome(IDialogContext context, IAwaitable<IMessageActivity> activity, LuisResult result) { var message = await activity; //CheckLogin if (string.IsNullOrEmpty(await context.GetAccessToken(AuthSettings.Scopes))) { await context.Forward(new AzureAuthDialog(AuthSettings.Scopes), this.ResumeAfterAuth, message, CancellationToken.None); } else { await context.PostAsync($"Hi " + getUser(context).UserName); context.Wait(this.MessageReceived); } } }
And here is the result :
Can you please help me getting this work.
thank you!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
In my Bot project. i need to check that the user is connected in every task related to an intent.
i am using LUIS, and AuthBot V2
my problem is that the login message fire only in one task. when i say HELLO.
by in another intent "HELP", the login message doesn't fire.
here is my code & result :
And here is the result :
Can you please help me getting this work.
thank you!
The text was updated successfully, but these errors were encountered: