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
CreateFileVersionAsync(FileVersionLink, Stream)
Asynchronously creates a file version for specified file version link.e.
public Task<IFileVersionLinkInfo> CreateFileVersionAsync(FileVersionLink file, Stream stream)
Result Type: Task<IFileVersionLinkInfo>
Parameters
Type | Name | |
---|---|---|
FileVersionLink | file | The handle for the file version being created. |
Stream | stream | The stream to which the contents of the current file version will be created. |
DeleteFileVersionAsync(FileVersionLink)
Asynchronously deletes the specified file version.
public Task DeleteFileVersionAsync(FileVersionLink file)
Result Type: Task
Parameters
Type | Name | |
---|---|---|
FileVersionLink | file | The link to the file version being deleted. |
GetFileVersionsAsync(FileLink, DateTime?)
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
Type | Name | |
---|---|---|
FileLink | file | The link to the file. |
DateTime?<DateTime> | since | A since which the file version are retrieving. |
ReadFileVersionAsync(FileVersionLink)
Asynchronously opens an existing file version to read.
public Task<Stream> ReadFileVersionAsync(FileVersionLink file)
Parameters
Type | Name | |
---|---|---|
FileVersionLink | file | The link to the file version to be opened for reading. |