microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
docs/update-release-process

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Plugins/Microsoft.Teams.Plugins.AspNetCore.DevTools/Extensions/HostApplicationBuilder.cs

22lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using System.Reflection;
5
6using Microsoft.Extensions.DependencyInjection;
7using Microsoft.Extensions.Hosting;
8using Microsoft.Teams.Apps.Extensions;
9
10namespace Microsoft.Teams.Plugins.AspNetCore.DevTools.Extensions;
11
12public static class HostApplicationBuilderExtensions
13{
14 [Obsolete("DevTools is deprecated and will be removed in a later version. Use Microsoft 365 Agents Playground instead.")]
15 public static IHostApplicationBuilder AddTeamsDevTools(this IHostApplicationBuilder builder)
16 {
17 builder.Services.AddSingleton(builder.Configuration.GetTeamsDevTools());
18 builder.Services.AddTeamsPlugin<DevToolsPlugin>();
19 builder.Services.AddControllers().AddApplicationPart(Assembly.GetExecutingAssembly());
20 return builder;
21 }
22}