private void ValidateFileSystemConfiguration(FileSystemConfiguration config) { if (config == null) { throw new ArgumentNullException("config"); } if (config.FileSystemProvider == null) { throw new ArgumentNullException("FileSystemProvider"); } if (config.Request == null) { throw new ArgumentNullException("Request"); } }
public FileSystemCommandProcessor(FileSystemConfiguration fileSystemConfiguration) { ValidateFileSystemConfiguration(fileSystemConfiguration); FileSystemConfiguration = fileSystemConfiguration; AllowedFileExtensions = new HashSet <string>(FileSystemConfiguration.AllowedFileExtensions); }