You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#region << 版 本 注 释 >>
|
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------
|
|
|
|
|
|
* 版权所有 (c) 2026 WenJY 保留所有权利。
|
|
|
|
|
|
* CLR版本:4.0.30319.42000
|
|
|
|
|
|
* 机器名称:Mr.Wen's MacBook Pro
|
|
|
|
|
|
* 命名空间:Sln.Wcs.HoistSdk.Config
|
|
|
|
|
|
* 唯一标识:AA1E9832-59AA-4CF2-A317-241D2634FBF2
|
|
|
|
|
|
*
|
|
|
|
|
|
* 创建者:WenJY
|
|
|
|
|
|
* 电子邮箱:
|
|
|
|
|
|
* 创建时间:2026-05-06 14:10:45
|
|
|
|
|
|
* 版本:V1.0.0
|
|
|
|
|
|
* 描述:
|
|
|
|
|
|
*
|
|
|
|
|
|
*--------------------------------------------------------------------
|
|
|
|
|
|
* 修改人:
|
|
|
|
|
|
* 时间:
|
|
|
|
|
|
* 修改说明:
|
|
|
|
|
|
*
|
|
|
|
|
|
* 版本:V1.0.0
|
|
|
|
|
|
*--------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
#endregion << 版 本 注 释 >>
|
|
|
|
|
|
|
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sln.Wcs.HoistSdk.Config;
|
|
|
|
|
|
|
|
|
|
|
|
public class HoistConfig
|
|
|
|
|
|
{
|
|
|
|
|
|
public readonly string str = "";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 注入提升机配置文件
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="configuration"></param>
|
|
|
|
|
|
/// <exception cref="Exception"></exception>
|
|
|
|
|
|
public HoistConfig(IConfiguration configuration)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (string.IsNullOrEmpty(configuration["str"]))
|
|
|
|
|
|
{
|
|
|
|
|
|
throw new Exception("str 配置不正确,请检查Apollo配置.");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
str = configuration["str"];
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|