コード例 #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]);
        }
コード例 #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]);
        }
コード例 #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]);
        }