<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="22.2.0" />

System.IO.Abstractions.FileStreamFactory

public IFileSystem FileSystem { get; }

public FileStreamFactory(IFileSystem fileSystem)

Base factory class for creating a FileSystemStream

public FileSystemStream New(SafeFileHandle handle, FileAccess access)

public FileSystemStream New(SafeFileHandle handle, FileAccess access, int bufferSize)

public FileSystemStream New(SafeFileHandle handle, FileAccess access, int bufferSize, bool isAsync)

public FileSystemStream New(string path, FileMode mode)

public FileSystemStream New(string path, FileMode mode, FileAccess access)

public FileSystemStream New(string path, FileMode mode, FileAccess access, FileShare share)

public FileSystemStream New(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize)

public FileSystemStream New(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, bool useAsync)

public FileSystemStream New(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options)

public FileSystemStream New(string path, FileStreamOptions options)

public FileSystemStream Wrap(FileStream fileStream)