microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
feature/oauthflow-fixes

Branches

Tags

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

Clone

HTTPS

Download ZIP

core/samples/CompatProactive/Program.cs

14lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4using CompatProactive;
5using Microsoft.Extensions.DependencyInjection;
6using Microsoft.Extensions.Hosting;
7using Microsoft.Teams.Apps.BotBuilder;
8
9
10HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
11builder.Services.AddTeamsBotFrameworkHttpAdapter();
12builder.Services.AddHostedService<ProactiveWorker>();
13IHost host = builder.Build();
14host.Run();
15