microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Apps/AppOptions.cs
36lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using Microsoft.Teams.Api.Auth; |
| 5 | using Microsoft.Teams.Apps.Plugins; |
| 6 | |
| 7 | namespace Microsoft.Teams.Apps; |
| 8 | |
| 9 | public 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 | } |