using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using IStation.Untity;
namespace IStation.Server
{
///
/// app 参数辅助类
///
internal class AppParasHelper
{
///
/// json文件名称
///
public static string JsonFileName
{
get
{
if (string.IsNullOrEmpty(_jsonFileName))
{
_jsonFileName= System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "paras_socket_szjtkt.json");
}
return _jsonFileName;
}
}
private static string _jsonFileName = null;
///
/// 获取
///
///
public static AppParas Get()
{
if (_appparas == null)
{
var json = FileHelper.ReadAllText(JsonFileName);
_appparas = JsonHelper.Json2Object(json);
}
return _appparas;
}
private static AppParas _appparas = null;
}
}