microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
kavin/agents-sdk-interop

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Extensions/Microsoft.Teams.Extensions.Configuration/Microsoft.Teams.Apps.Extensions/ConfigurationManager.cs

20lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using Microsoft.Extensions.Configuration;
5using Microsoft.Teams.Common.Logging;
6
7namespace Microsoft.Teams.Apps.Extensions;
8
9public static class ConfigurationManagerExtensions
10{
11 public static TeamsSettings GetTeams(this IConfigurationManager manager)
12 {
13 return manager.GetSection("Teams").Get<TeamsSettings>() ?? new();
14 }
15
16 public static LoggingSettings GetTeamsLogging(this IConfigurationManager manager)
17 {
18 return manager.GetSection("Logging").GetSection("Microsoft.Teams").Get<LoggingSettings>() ?? new();
19 }
20}