microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.1.0-preview-0006

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Apps/Events/StartEvent.cs

19lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using Microsoft.Teams.Apps.Plugins;
5
6namespace Microsoft.Teams.Apps.Events;
7
8public static partial class AppEventExtensions
9{
10 public static App OnStart(this App app, Action<IPlugin, Event> handler)
11 {
12 return app.OnEvent(EventType.Start, handler);
13 }
14
15 public static App OnStart(this App app, Func<IPlugin, Event, CancellationToken, Task> handler)
16 {
17 return app.OnEvent(EventType.Start, handler);
18 }
19}