microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Apps/Events/StartEvent.cs
19lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using Microsoft.Teams.Apps.Plugins; |
| 5 | |
| 6 | namespace Microsoft.Teams.Apps.Events; |
| 7 | |
| 8 | public 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 | } |