microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/close-pull-request

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Tests/Microsoft.Teams.Apps.Tests/Activities/Events/MeetingEventActivityController.cs

44lines · modecode

1
2using Microsoft.Teams.Api.Activities.Events;
3using Microsoft.Teams.Apps.Annotations;
4
5using static Microsoft.Teams.Apps.Activities.Events.Event;
6
7namespace Microsoft.Teams.Apps.Tests.Activities.Events;
8
9[TeamsController]
10public class MeetingActivityController
11{
12 public string MethodCalled { get; set; } = string.Empty;
13
14 [MeetingStart]
15 public async Task Method1(IContext<MeetingStartActivity> context, [Context] IContext.Next next)
16 {
17 MethodCalled = "meetingStartMethod";
18 await next();
19 }
20
21
22 [MeetingEnd]
23 public async Task Method2(IContext<MeetingEndActivity> context, [Context] IContext.Next next)
24 {
25 MethodCalled = "meetingEndMethod";
26 await next();
27 }
28
29
30 [MeetingJoin]
31 public async Task Method3(IContext<MeetingParticipantJoinActivity> context, [Context] IContext.Next next)
32 {
33 MethodCalled = "meetingJoinMethod";
34 await next();
35 }
36
37
38 [MeetingLeave]
39 public async Task Method4(IContext<MeetingParticipantLeaveActivity> context, [Context] IContext.Next next)
40 {
41 MethodCalled = "meetingLeaveMethod";
42 await next();
43 }
44}