public ExcelRepository(ILogger <ExcelRepository> logger, IEnumerable <IEntityAdapter> converters, IOptions <FileLocationOptions> fileLocationOptions) { _logger = logger; _converters = converters; _fileLocationOptions = fileLocationOptions.Value; }
protected NsConsoleCommand(IOptions <FileLocationOptions> fileLocationOptions) { HasOption("path=", "(Valgfri) Angivelse af sti for .xlxs-filer", s => { fileLocationOptions.Value.Path = s; }); HasOption("workroot=", "(Valgfri) Angivelse af rodfolder for filer", s => { fileLocationOptions.Value.WorkRoot = s; }); _fileLocationOptions = fileLocationOptions.Value; }