Example #1
0
        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]);
        }
Example #2
0
        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]);
        }