예제 #1
0
 public DocumentParser(ISplitterHelper textSplitter, ITextParserFactory textParserFactory)
 {
     Guard.NotNull(() => textSplitter, textSplitter);
     Guard.NotNull(() => textParserFactory, textParserFactory);
     this.textSplitter      = textSplitter;
     this.textParserFactory = textParserFactory;
 }
예제 #2
0
 public ParserController(ILoggerFactory loggerFactory, ITextParserFactory parser, IEnviromentHandler handler)
     : base(loggerFactory)
 {
     parserFactory = parser ?? throw new ArgumentNullException(nameof(parser));
     this.handler  = handler ?? throw new ArgumentNullException(nameof(handler));
 }