IFileSystemHistoryAsyncOperations

Namespace: TagBites.IO.Operations
Assembly: TagBites.IO.dll

Provides a mechanism for file history asynchronous operations for TagBites.IO.FileSystem.

public abstract interface IFileSystemHistoryAsyncOperations

Methods

Asynchronously creates a file version for specified file version link.e.

public Task<IFileVersionLinkInfo> CreateFileVersionAsync(FileVersionLink file, Stream stream)

Result Type: Task<IFileVersionLinkInfo>

Parameters

TypeName
FileVersionLinkfileThe handle for the file version being created.
StreamstreamThe stream to which the contents of the current file version will be created.

Asynchronously deletes the specified file version.

public Task DeleteFileVersionAsync(FileVersionLink file)

Result Type: Task

Parameters

TypeName
FileVersionLinkfileThe link to the file version being deleted.

Asynchronously retrieves a collection of the file versions since specified date time.

public Task<IList<IFileVersionLinkInfo>> GetFileVersionsAsync(FileLink file, DateTime? since)

Result Type: Task<IList<IFileVersionLinkInfo>>

Parameters

TypeName
FileLinkfileThe link to the file.
DateTime?<DateTime>sinceA since which the file version are retrieving.

Asynchronously opens an existing file version to read.

public Task<Stream> ReadFileVersionAsync(FileVersionLink file)

Result Type: Task<Stream>

Parameters

TypeName
FileVersionLinkfileThe link to the file version to be opened for reading.