private void EnsureInstallDescriptorsLoaded() { if (!_installUnitDescriptorsLoaded) { var cacheObj = JObject.Parse(_paths.ReadAllText(_paths.User.InstallUnitDescriptorsFile, "{}")); _installUnitDescriptorCache = InstallUnitDescriptorCache.FromJObject(EnvironmentSettings, cacheObj); _installUnitDescriptorsLoaded = true; } }
private void EnsureInstallDescriptorsLoaded() { if (_installUnitDescriptorsLoaded) { return; } string descriptorFileContents = _paths.ReadAllText(_paths.User.InstallUnitDescriptorsFile, "{}"); JObject parsed = JObject.Parse(descriptorFileContents); _installUnitDescriptorCache = InstallUnitDescriptorCache.FromJObject(_environmentSettings, parsed); _installUnitDescriptorsLoaded = true; }