Ejemplo n.º 1
0
        public static Dependencies FromConfigFile(string configFilePath)
        {
            if (!_cache.ContainsKey(configFilePath))
            {
                var hostInteraction = new HostInteraction(configFilePath);
                _cache[configFilePath] = new Dependencies(hostInteraction);
            }

            return(_cache[configFilePath]);
        }
Ejemplo n.º 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);
            }

            return(_cache[configFilePath]);
        }
Ejemplo n.º 3
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]);
        }