microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
core/integration-test-au

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Apps/AppOptions.cs

37lines · 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 /// When true, performs a per-activity user OAuth token lookup to populate
23 /// <c>IContext.IsSignedIn</c> / <c>IContext.UserGraphToken</c>. Set to false to
24 /// skip the call when SSO is not configured. Defaults to true.
25 /// </summary>
26 public bool AutoUserTokenLookup { get; set; } = true;
27
28 public AppOptions()
29 {
30
31 }
32
33 public AppOptions(IServiceProvider provider)
34 {
35 Provider = provider;
36 }
37}