private async Task SendEoCToParentAsync(ITurnContext turnContext, Exception exception)
 {
     try
     {
         if (turnContext.IsSkill())
         {
             // Send and EndOfConversation activity to the skill caller with the error to end the conversation
             // and let the caller decide what to do.
             var endOfConversation = Activity.CreateEndOfConversationActivity();
             endOfConversation.Code = "SkillError";
             endOfConversation.Text = exception.Message;
             await turnContext.SendActivityAsync(endOfConversation);
         }
     }
     catch (Exception ex)
     {
         _logger.LogError(ex, $"Exception caught in SendEoCToParentAsync : {ex}");
     }
 }
 // workaround. if connect skill directly to teams, the following response does not work.
 protected bool SupportOpenDefaultAppReply(ITurnContext turnContext)
 {
     return(turnContext.IsSkill() || Channel.GetChannelId(turnContext) != Channels.Msteams);
 }