public TestDataController() { _storageAccount = ControllerUtil.CreateStorageAccount(); _storage = new TestResultStorage(_storageAccount); _stats = new TestCacheStats(_storage, _storageAccount.CreateCloudTableClient()); _statsUtil = ControllerUtil.GetOrCreateCounterStatsUtil(_storageAccount); }
internal static CounterStatsUtil GetOrCreateCounterStatsUtil(CloudStorageAccount account) { var util = _counterStatsUtil; if (util == null) { _counterStatsUtil = new CounterStatsUtil(account.CreateCloudTableClient()); util = _counterStatsUtil; } return util; }
internal static CounterStatsUtil GetOrCreateCounterStatsUtil(CloudStorageAccount account) { var util = _counterStatsUtil; if (util == null) { _counterStatsUtil = new CounterStatsUtil(account.CreateCloudTableClient()); util = _counterStatsUtil; } return(util); }