Esempio n. 1
0
        private void readImport(Queue <string> queue, string verb, string provenance)
        {
            switch (verb)
            {
            case "from":
                queue.Each(export => _registration.Dependency(provenance, export));
                break;

            default:
                throw new InvalidSyntaxException(invalidVerb(verb));
            }
        }
Esempio n. 2
0
        public void Dependency(string dependent, string dependency)
        {
            _logs.FindByName(dependent)
            .Add(_provenance, "requires {0}".ToFormat(dependency));

            _logs.FindByName(dependency)
            .Add(_provenance, "is required by {0}".ToFormat(dependent));

            _inner.Dependency(dependent, dependency);
        }