Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
use Handoff instead of EndOfConversation for SkillTemplate (#2257)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzc850612 committed Aug 30, 2019
1 parent 76b7204 commit 193e641
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public MainDialog(
protected override async Task CompleteAsync(DialogContext dc, DialogTurnResult result = null, CancellationToken cancellationToken = default(CancellationToken))
{
var response = dc.Context.Activity.CreateReply();
response.Type = ActivityTypes.EndOfConversation;
response.Type = ActivityTypes.Handoff;
await dc.Context.SendActivityAsync(response);
await dc.EndDialogAsync(result);
}
Expand All @@ -133,7 +133,7 @@ public MainDialog(
if (result.Status != DialogTurnStatus.Waiting)
{
var response = dc.Context.Activity.CreateReply();
response.Type = ActivityTypes.EndOfConversation;
response.Type = ActivityTypes.Handoff;

await dc.Context.SendActivityAsync(response);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public MainDialog(
protected override async Task CompleteAsync(DialogContext dc, DialogTurnResult result = null, CancellationToken cancellationToken = default(CancellationToken))
{
var response = dc.Context.Activity.CreateReply();
response.Type = ActivityTypes.EndOfConversation;
response.Type = ActivityTypes.Handoff;
await dc.Context.SendActivityAsync(response);
await dc.EndDialogAsync(result);
}
Expand All @@ -133,7 +133,7 @@ public MainDialog(
if (result.Status != DialogTurnStatus.Waiting)
{
var response = dc.Context.Activity.CreateReply();
response.Type = ActivityTypes.EndOfConversation;
response.Type = ActivityTypes.Handoff;

await dc.Context.SendActivityAsync(response);
}
Expand Down

0 comments on commit 193e641

Please sign in to comment.