public static void SetInstance(CoverageData data) { lock (_locker) { _instance = data; } }
public static CoverageData GetInstance() { lock (_locker) { if (_instance == null) { _instance = new CoverageData(); } } return(_instance); }
// To communicate across proxy instance public void SetStaticInstance(CoverageData data) { SetInstance(data); }
public void SetupCoverage(Dictionary <string, int> lineLocatorIDs, Dictionary <int, string> reverseLineLocatorIDs) { coverageData = CoverageData.GetInstance(); coverageData.LineLocatorIDs = lineLocatorIDs; coverageData.reverseLineLocatorIDs = reverseLineLocatorIDs; }