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.

45 lines
1.1 KiB
C#

using AucmaEms.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AucmaEms.Entity
{
public sealed class AppConfig
{
private static readonly Lazy<AppConfig> lazy = new Lazy<AppConfig>(() => new AppConfig());
public static AppConfig Instance
{
get
{
return lazy.Value;
}
}
private AppConfig() { }
/// <summary>
/// 读取频率
/// </summary>
public int ReadIntervel = StringChange.ParseToInt(ConfigHelper.GetConfig("ReadIntervel"));
/// <summary>
/// 监听IP
/// </summary>
public string listenIp = ConfigHelper.GetConfig("listenIp");
/// <summary>
/// 监听端口号
/// </summary>
public int listenPort = StringChange.ParseToInt(ConfigHelper.GetConfig("listenPort"));
/// <summary>
/// 数据库字符串
/// </summary>
public string connectStr = ConfigHelper.GetConfig("connectStr");
}
}