IFileSystemAsyncReadOperations
Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0
Provides the asynchronous read operations of a FileSystem.
public interface IFileSystemAsyncReadOperations : TagBites.IO.Operations.IFileSystemOperationsMethods
Section titled “Methods”GetLinkInfoAsync(string)
Section titled “GetLinkInfoAsync(string)”Returns information about a file/directory for the specified full name.
public virtual Task<IFileSystemStructureLinkInfo> GetLinkInfoAsync(string fullName)Parameters
Section titled “Parameters”fullNamestring
The full path of the directory or file.
Returns
Section titled “Returns”Task<IFileSystemStructureLinkInfo>
A Task of IFileSystemStructureLinkInfo representing information about a file/directory.
GetLinksAsync(DirectoryLink, FileSystem.ListingOptions)
Section titled “GetLinksAsync(DirectoryLink, FileSystem.ListingOptions)”Asynchronously retrieves a collection of strongly typed IFileSystemStructureLinkInfo objects representing the files and subdirectories that match the specified search criteria.
public virtual Task<IList<IFileSystemStructureLinkInfo>> GetLinksAsync(DirectoryLink directory, FileSystem.ListingOptions options)Parameters
Section titled “Parameters”directoryDirectoryLink
The link to the searched directory.optionsFileSystem.ListingOptions
The options for matching against the names of directories and files.
Returns
Section titled “Returns”Task<IList<IFileSystemStructureLinkInfo>>
The task object representing the asynchronous operation. The value of the parameter contains a collection of information about the files or directories.
ReadFileAsync(FileLink, Stream)
Section titled “ReadFileAsync(FileLink, Stream)”Asynchronously reads an existing file to a stream.
public virtual Task ReadFileAsync(FileLink file, Stream stream)Parameters
Section titled “Parameters”fileFileLink
The link to the file to be opened for reading.streamStream
Stream to copy file content into.
Returns
Section titled “Returns”The task object representing the asynchronous operation. The value of the parameter contains a read-only Stream for the specified file.