microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/samples/Proactive/Program.cs
13lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using Microsoft.Bot.Core.Hosting; |
| 5 | |
| 6 | using Proactive; |
| 7 | |
| 8 | HostApplicationBuilder builder = Host.CreateApplicationBuilder(args); |
| 9 | builder.Services.AddConversationClient(); |
| 10 | builder.Services.AddHostedService<Worker>(); |
| 11 | |
| 12 | IHost host = builder.Build(); |
| 13 | host.Run(); |
| 14 | |