private static CiteTableV2 GetCiteTable(string dbAccount) { var citeTb = _dict.xTryGetValue(dbAccount, null); if (citeTb == null) { lock (_syn4CreateTable) { citeTb = _dict.xTryGetValue(dbAccount, null); if (citeTb == null) { citeTb = new CiteTableV2(dbAccount); _dict[dbAccount] = citeTb; } } } return(citeTb); }
public InputSugestionHelper(CiteTableV2 citeTable) { _prompDict = new ConcurrentDictionary <string, InputPromptString>(); _countForLogPrompDictCount = -1; _citeTable = citeTable; }