diff --git a/samples/bot-all-cards/csharp/demo-manifest/bot-all-cards.zip b/samples/bot-all-cards/csharp/demo-manifest/bot-all-cards.zip index 7b975f57d4..63e6d69832 100644 Binary files a/samples/bot-all-cards/csharp/demo-manifest/bot-all-cards.zip and b/samples/bot-all-cards/csharp/demo-manifest/bot-all-cards.zip differ diff --git a/samples/tab-stage-view/csharp/TabInStageView/Bots/ActivityBot.cs b/samples/tab-stage-view/csharp/TabInStageView/Bots/ActivityBot.cs index 667cf0e2d1..58086fb94f 100644 --- a/samples/tab-stage-view/csharp/TabInStageView/Bots/ActivityBot.cs +++ b/samples/tab-stage-view/csharp/TabInStageView/Bots/ActivityBot.cs @@ -24,6 +24,7 @@ public class ActivityBot : TeamsActivityHandler { private readonly string _appId; private readonly string _applicationBaseURL; + public static string _threadId; /// /// Initializes a new instance of the class. @@ -45,6 +46,10 @@ public ActivityBot(IConfiguration configuration) protected override async Task OnMembersAddedAsync(IList membersAdded, ITurnContext turnContext, CancellationToken cancellationToken) { var welcomeText = "Hello and welcome!, Please type any bot command to see the stage view feature"; + + // Set thread Id + _threadId = turnContext.Activity.Conversation.Id; + foreach (var member in membersAdded) { if (member.Id != turnContext.Activity.Recipient.Id) diff --git a/samples/tab-stage-view/csharp/TabInStageView/Models/TabInfoAction.cs b/samples/tab-stage-view/csharp/TabInStageView/Models/TabInfoAction.cs index 514b28ee4b..13e5b30d2a 100644 --- a/samples/tab-stage-view/csharp/TabInStageView/Models/TabInfoAction.cs +++ b/samples/tab-stage-view/csharp/TabInStageView/Models/TabInfoAction.cs @@ -5,6 +5,7 @@ namespace TabInStageView.Models { using Newtonsoft.Json; + using System; /// /// Tab info action model class. @@ -22,5 +23,16 @@ public class TabInfoAction /// [JsonProperty("tabInfo")] public TabInfo TabInfo { get; set; } + + /// + /// Gets or sets tab info. + /// + [JsonProperty("threadId")] + public string? ThreadId { get; set; } = string.Empty; + + public TabInfoAction() + { + ThreadId = ""; + } } } \ No newline at end of file diff --git a/samples/tab-stage-view/csharp/TabInStageView/Views/Home/SampleTab.cshtml b/samples/tab-stage-view/csharp/TabInStageView/Views/Home/SampleTab.cshtml index 9d2ed8ded7..01992bbdcc 100644 --- a/samples/tab-stage-view/csharp/TabInStageView/Views/Home/SampleTab.cshtml +++ b/samples/tab-stage-view/csharp/TabInStageView/Views/Home/SampleTab.cshtml @@ -1,26 +1,47 @@ - +@page +@model TabInStageView.Models.TabInfoAction + + -