microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.0.0-preview.5

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

16lines · modepreview

using Microsoft.Teams.Apps.Plugins;

namespace Microsoft.Teams.Apps.Events;

public static partial class AppEventExtensions
{
    public static App OnStart(this App app, Action<IPlugin, Event> handler)
    {
        return app.OnEvent(EventType.Start, handler);
    }

    public static App OnStart(this App app, Func<IPlugin, Event, CancellationToken, Task> handler)
    {
        return app.OnEvent(EventType.Start, handler);
    }
}