@microsoft/teamsfx-core 3.0.5-alpha.e092ea0a6.0 → 3.0.5-alpha.fa365893d.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+
4
+ using Microsoft.Agents.Builder;
5
+ using Microsoft.Agents.Extensions.Teams.Connector;
6
+ using Microsoft.Agents.Extensions.Teams.Models;
7
+
8
+ namespace {{YOUR_NAMESPACE}}.SSO
9
+ {
10
+ /// <summary>
11
+ /// Helper class used to wrap static method and simplify unit test.
12
+ /// </summary>
13
+ internal class TeamsInfoWrapper : ITeamsInfo
14
+ {
15
+ public Task<TeamsChannelAccount> GetTeamsMemberAsync(ITurnContext context, string userId, CancellationToken cancellationToken = default)
16
+ {
17
+ return TeamsInfo.GetMemberAsync(context, userId, cancellationToken);
18
+ }
19
+ }
20
+ }
@@ -1,14 +1,15 @@
1
- using Microsoft.Bot.Builder;
2
- using Microsoft.Bot.Builder.Teams;
3
- using Microsoft.Bot.Schema;
4
- using Microsoft.Bot.Builder.Dialogs;
1
+ using Microsoft.Agents.Extensions.Teams.Compat;
2
+ using Microsoft.Agents.Builder.Dialogs;
3
+ using Microsoft.Agents.Builder.State;
4
+ using Microsoft.Agents.Builder;
5
+ using Microsoft.Agents.Core.Models;
5
6
 
6
7
  namespace {{YOUR_NAMESPACE}}.SSO;
7
8
 
8
9
  public class TeamsSsoBot<T> : TeamsActivityHandler where T : Dialog
9
10
  {
10
11
  private readonly ILogger<TeamsSsoBot<T>> _logger;
11
- private readonly BotState _conversationState;
12
+ private readonly AgentState _conversationState;
12
13
  private readonly Dialog _dialog;
13
14
  private readonly IStatePropertyAccessor<DialogState> _dialogState;
14
15