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.

48 lines
1.2 KiB
C#

#region << 版 本 注 释 >>
/*--------------------------------------------------------------------
* (c) 2026 WenJY
* CLR4.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"];
}
}