public StorageFileSystemTests() { var configuration = Zongsoft.Options.Configuration.OptionConfiguration.Load(@"\Zongsoft\Zongsoft.Externals.Aliyun\src\Zongsoft.Externals.Aliyun.option"); var option = configuration.GetOptionObject("Externals/Aliyun/General") as Zongsoft.Externals.Aliyun.Options.Configuration.GeneralConfiguration; var fileSystem = new StorageFileSystem(option); Zongsoft.IO.FileSystem.Providers.Register(fileSystem, typeof(Zongsoft.IO.IFileSystem)); }
internal StorageFileProvider(StorageFileSystem fileSystem) { _fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem)); }
internal StorageFileProvider(StorageFileSystem fileSystem) { if(fileSystem == null) throw new ArgumentNullException("fileSystem"); _fileSystem = fileSystem; _client = fileSystem.Client; }