示例#1
0
 public ExcelRepository(ILogger <ExcelRepository> logger, IEnumerable <IEntityAdapter> converters,
                        IOptions <FileLocationOptions> fileLocationOptions)
 {
     _logger              = logger;
     _converters          = converters;
     _fileLocationOptions = fileLocationOptions.Value;
 }
示例#2
0
        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;
        }