private static void processDefinition(Definition definition) { var logFile = ConfigurationManager.AppSettings["LogFile"]; if (logFile == null) throw new ApplicationException("LogFile not specified."); logFile = Path.GetFullPath(logFile); var logger = new Logger(logFile); var definitionProcessor = new DefinitionProcessor(definition, logger); definitionProcessor.Process(); }
public DefinitionProcessor(Definition definition,ILogger communicator) { _definition = definition; _logger = communicator; }