FileHandler(IValidator validator, IOptions <FileHandlerSettings> settings, string rootPath) { _validator = validator; _settings = settings.Value; RootPath = rootPath; }
public FileHandlerHelper(FileHandlerSettings settings) { _settings = settings ?? throw new ArgumentNullException(nameof(settings)); }