using System;
using System.Collections.Generic;
using Lottomat.Util;
using Lottomat.Util.Extension;
namespace Lottomat.Application.Code
{
///
/// 初始化开奖号配置文件
///
public class InitLotteryConfig
{
private static List cache = null;
private static readonly object _lock = new object();
///
/// 初始化配置文件
///
///
public static List Init()
{
if (cache == null)
{
lock (_lock)
{
if (cache == null)
{
string configFile = AppDomain.CurrentDomain.BaseDirectory + "XmlConfig\\SCCConfig.xml";
cache = configFile.ConvertXMLToObject("SCCSettings");
}
}
}
return cache;
}
}
}