microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/fix-user-input-log-forging

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/ConfigurationManager.cs

14lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using Microsoft.Extensions.Configuration;
5
6namespace Microsoft.Teams.Plugins.AspNetCore.DevTools.Extensions;
7
8public static class ConfigurationManagerExtensions
9{
10 public static TeamsDevToolsSettings GetTeamsDevTools(this IConfigurationManager manager)
11 {
12 return manager.GetSection("Teams").GetSection("Plugins.DevTools").Get<TeamsDevToolsSettings>() ?? new();
13 }
14}