public Setting(string processId = null) { ProcessCmdId = processId ?? "Test"; Logger.defaultPath = "log\\Thread." + ProcessCmdId; threadSetting = new ThreadSetting() { }; Init = true; }
public Setting(string processId = null) { MainReg = new Reg("sfMinerDigger").In("Main"); Pid = Process.GetCurrentProcess().Id.ToString(); ProcessCmdId = processId ?? "Test"; Logger.defaultPath = "log\\Thread." + ProcessCmdId; threadSetting = new ThreadSetting(MainReg.In("Thread").In(ProcessCmdId)) { CorePid = Pid }; var dataListReg = new Reg("sfMinerDigger").In("Main").In("Data").In("DataList"); DataListServerReg = dataListReg.In("Server"); DataListCoreReg = dataListReg.In("Core").In("@" + ProcessCmdId); BrowserServerSeeting = MainReg.In("setting").In("Cmd").In("Server"); Init = true; }