microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Apps/Events/EventFunction.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 | /// <summary> |
| 9 | /// a function for emitting events |
| 10 | /// </summary> |
| 11 | /// <param name="plugin">the plugin</param> |
| 12 | /// <param name="name">the event name</param> |
| 13 | /// <param name="payload">the event payload</param> |
| 14 | public delegate Task<object?> EventFunction( |
| 15 | IPlugin plugin, |
| 16 | string name, |
| 17 | Event? payload = null, |
| 18 | CancellationToken cancellationToken = default |
| 19 | ); |