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 BufferWeight
{
get { return iniHelper.IniReadValue("system", "BufferWeight"); }
set { iniHelper.IniWriteValue("system", "BufferWeight", value); }
}
///
///系统当前使用配方模版
///
public string RecipeName
{
get { return iniHelper.IniReadValue("system", "RecipeName"); }
set { iniHelper.IniWriteValue("system", "RecipeName", value); }
}
///
///配方运行模式
///
public string RecipeMode
{
get { return iniHelper.IniReadValue("system", "RecipeMode"); }
set { iniHelper.IniWriteValue("system", "RecipeMode", value); }
}
///
///拆包机螺旋--烘干机螺旋切换间隔(单位:ms)
///
public string UnpackToHotTime
{
get { return iniHelper.IniReadValue("system", "UnpackToHotTime"); }
set { iniHelper.IniWriteValue("system", "UnpackToHotTime", value); }
}
///
///烘干机螺旋--螺旋1切换间隔(单位:ms)
///
public string HotToSpiralTime
{
get { return iniHelper.IniReadValue("system", "HotToSpiralTime"); }
set { iniHelper.IniWriteValue("system", "HotToSpiralTime", value); }
}
///
///#螺旋1--螺旋2切换间隔(单位:ms)
///
public string SpiralTwoTime
{
get { return iniHelper.IniReadValue("system", "SpiralTwoTime"); }
set { iniHelper.IniWriteValue("system", "SpiralTwoTime", value); }
}
///
///喷码机IP
///
public string BarCodeMachineIP
{
get { return iniHelper.IniReadValue("system", "BarCodeMachineIP"); }
set { iniHelper.IniWriteValue("system", "BarCodeMachineIP", value); }
}
}
}