diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Skills/AdaptiveSkillDialog.cs b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Skills/AdaptiveSkillDialog.cs index ebd698f40d..cc390012ca 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Skills/AdaptiveSkillDialog.cs +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Skills/AdaptiveSkillDialog.cs @@ -7,6 +7,7 @@ using System.Threading; using System.Threading.Tasks; using AdaptiveExpressions.Properties; +using Microsoft.Bot.Builder.Dialogs.Adaptive.Templates; using Microsoft.Bot.Builder.Skills; using Microsoft.Bot.Schema; using Newtonsoft.Json; @@ -161,5 +162,22 @@ public override Task ContinueDialogAsync(DialogContext dc, Can return base.ContinueDialogAsync(dc, cancellationToken); } + + protected override string OnComputeId() + { + var appId = SkillAppId?.ToString() ?? string.Empty; + string activity; + + if (Activity is ActivityTemplate at) + { + activity = StringUtils.Ellipsis(at.Template.Trim(), 30); + } + else + { + activity = StringUtils.Ellipsis(Activity?.ToString().Trim(), 30); + } + + return $"{this.GetType().Name}['{appId}','{activity}']"; + } } }