using Microsoft.Extensions.Options;
using System;
using System.Collections.Generic;
namespace SlnMesnac.Config
{
///
/// 系统配置
///
public sealed class DebugConfig
{
private static IniHelper iniHelper = new IniHelper(System.Environment.CurrentDirectory + "/config/App.InI");
private static readonly Lazy lazy = new Lazy(() => new DebugConfig());
public static DebugConfig Instance
{
get
{
return lazy.Value;
}
}
public DebugConfig()
{
}
///
///上次投料时间
///
public string LastTime
{
get { return iniHelper.IniReadValue("system", "LastTime"); }
set { iniHelper.IniWriteValue("system", "LastTime", value); }
}
///
///喷码机IP
///
public string BarCodeMachineIP
{
get { return iniHelper.IniReadValue("system", "BarCodeMachineIP"); }
set { iniHelper.IniWriteValue("system", "BarCodeMachineIP", value); }
}
}
}