namespace IStation.DataDockingApi
{
///
/// app 参数辅助类
///
internal class AppParasHelper
{
///
/// json文件名称
///
public static string JsonFileName
{
get
{
if (string.IsNullOrEmpty(_jsonFileName))
{
_jsonFileName = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "paras_datadocking_api_jtmeter.json");
}
return _jsonFileName;
}
}
private static string _jsonFileName = null;
///
/// 获取
///
///
public static AppParas Get()
{
if (_appparas == null)
{
_appparas = JsonHelper.Json2Object(File.ReadAllText(JsonFileName));
}
return _appparas;
}
private static AppParas _appparas = null;
}
}