microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
cg/sovereign-cloud-nextcore

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Apps/AppOptions.cs

36lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using Microsoft.Teams.Api.Auth;
5using Microsoft.Teams.Apps.Plugins;
6
7namespace Microsoft.Teams.Apps;
8
9public class AppOptions
10{
11 public IServiceProvider? Provider { get; set; }
12 public Common.Logging.ILogger? Logger { get; set; }
13 public Common.Storage.IStorage<string, object>? Storage { get; set; }
14 public Common.Http.IHttpClient? Client { get; set; }
15 public Common.Http.IHttpClientFactory? ClientFactory { get; set; }
16 public Common.Http.IHttpCredentials? Credentials { get; set; }
17 public IList<IPlugin> Plugins { get; set; } = [];
18 public OAuthSettings OAuth { get; set; } = new OAuthSettings();
19 public CloudEnvironment? Cloud { get; set; }
20
21 /// <summary>
22 /// Additional allowed service URL hostnames beyond the built-in defaults.
23 /// Use this if your bot receives activities from non-standard channels.
24 /// </summary>
25 public IEnumerable<string>? AdditionalAllowedDomains { get; set; }
26
27 public AppOptions()
28 {
29
30 }
31
32 public AppOptions(IServiceProvider provider)
33 {
34 Provider = provider;
35 }
36}