<PackageReference Include="Testably.Abstractions.FileSystem.Interface" Version="10.4.0-pre.1" />

System.IO.Abstractions.IFileStreamFactory

A factory for the creation of wrappers for FileStream in a IFileSystem.
namespace System.IO.Abstractions { public interface IFileStreamFactory : IFileSystemEntity { FileSystemStream New(SafeFileHandle handle, FileAccess access); FileSystemStream New(SafeFileHandle handle, FileAccess access, int bufferSize); FileSystemStream New(SafeFileHandle handle, FileAccess access, int bufferSize, bool isAsync); FileSystemStream New(string path, FileMode mode); FileSystemStream New(string path, FileMode mode, FileAccess access); FileSystemStream New(string path, FileMode mode, FileAccess access, FileShare share); FileSystemStream New(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize); FileSystemStream New(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, bool useAsync); FileSystemStream New(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options); FileSystemStream New(string path, FileStreamOptions options); FileSystemStream Wrap(FileStream fileStream); } }