public static Dependencies FromConfigFile(string configFilePath) { if (!_cache.ContainsKey(configFilePath)) { var hostInteraction = new HostInteraction(configFilePath); _cache[configFilePath] = new Dependencies(hostInteraction); } return(_cache[configFilePath]); }
public static Dependencies FromConfigFile(string configFilePath) { if (!_cache.ContainsKey(configFilePath)) { PerProjectLogger perProjectLogger = new PerProjectLogger(configFilePath); HostInteraction hostInteraction = new HostInteraction(configFilePath, perProjectLogger); _cache[configFilePath] = new Dependencies(hostInteraction); } return(_cache[configFilePath]); }
public static Dependencies FromConfigFile(string configFilePath) { if (!_cache.ContainsKey(configFilePath)) { PerProjectLogger perProjectLogger = new PerProjectLogger(configFilePath); HostInteraction hostInteraction = new HostInteraction(configFilePath, perProjectLogger); _cache[configFilePath] = new Dependencies(hostInteraction); } // We need to initialize naming schemes for the providers before we can proceed with any operation. LibraryIdToNameAndVersionConverter.Instance.EnsureInitialized(_cache[configFilePath]); return(_cache[configFilePath]); }