|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
-
- //
-
-
-
-
-
-
-
-
- using Microsoft.Extensions.Configuration;
- using MoYu.ConfigurableOptions;
-
- namespace SafeCampus.Core;
-
- public class AppInfoOptions : IConfigurableOptionsListener<AppInfoOptions>
- {
- /// <summary>
- /// 深象智能API_Host
- /// </summary>
- public string SXAPIURL { get; set; }
- /// <summary>
- /// AppKey
- /// </summary>
- public string AppKey { get; set; }
- /// <summary>
- /// AppSecret
- /// </summary>
- public string AppSecret { get; set; }
- /// <summary>
- /// 场所ID
- /// </summary>
- public string PoiId { get; set; }
- /// <summary>
- /// 租户ID
- /// </summary>
- public string TenantCode { get; set; }
-
- public void PostConfigure(AppInfoOptions options, IConfiguration configuration)
- {
- }
-
- public void OnListener(AppInfoOptions options, IConfiguration configuration)
- {
- SXAPIURL = options.SXAPIURL;
- AppKey = options.AppKey;
- AppSecret = options.AppSecret;
- PoiId = options.PoiId;
- TenantCode = options.TenantCode;
- }
- }
|