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.
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace SlnMesnac.Config
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 系统配置
|
|
|
|
|
/// </summary>
|
|
|
|
|
public sealed class DebugConfig
|
|
|
|
|
{
|
|
|
|
|
private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/App.InI");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static readonly Lazy<DebugConfig> lazy = new Lazy<DebugConfig>(() => new DebugConfig());
|
|
|
|
|
public static DebugConfig Instance
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return lazy.Value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DebugConfig()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 海康相机--IP
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Scanner1IP
|
|
|
|
|
{
|
|
|
|
|
get { return iniHelper.IniReadValue("system", "Scanner1IP"); }
|
|
|
|
|
set { iniHelper.IniWriteValue("system", "Scanner1IP", value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|