Interface IBackupService
The interface describing online data storage service.
public interface IBackupService : IDisposable
- Inherited Members
- Extension Methods
Properties
CanFolders
Is folders feature available.
bool CanFolders { get; }
Property Value
CanPartialDownload
Is partial download feature available.
bool CanPartialDownload { get; }
Property Value
CanPublish
Is publishing feature available.
bool CanPublish { get; }
Property Value
Methods
CreateFolder(BackupEntry, CancellationToken)
Is partial upload feature available.
Task CreateFolder(BackupEntry entry, CancellationToken cancellationToken = default)
Parameters
entry
BackupEntrycancellationToken
CancellationToken
Returns
DeleteAsync(BackupEntry, CancellationToken)
Delete file from the service.
Task DeleteAsync(BackupEntry entry, CancellationToken cancellationToken = default)
Parameters
entry
BackupEntryElement.
cancellationToken
CancellationToken
Returns
DownloadAsync(BackupEntry, Stream, long?, long?, Action<int>, CancellationToken)
Save file.
Task DownloadAsync(BackupEntry entry, Stream stream, long? offset, long? length, Action<int> progress, CancellationToken cancellationToken = default)
Parameters
entry
BackupEntryElement.
stream
Streamoffset
long?length
long?progress
Action<int>Progress notification.
cancellationToken
CancellationToken
Returns
FillInfoAsync(BackupEntry, CancellationToken)
Fill file info.
Task FillInfoAsync(BackupEntry entry, CancellationToken cancellationToken = default)
Parameters
entry
BackupEntryElement.
cancellationToken
CancellationToken
Returns
FindAsync(BackupEntry, string, CancellationToken)
Find files by the specified criteria.
IAsyncEnumerable<BackupEntry> FindAsync(BackupEntry parent, string criteria, CancellationToken cancellationToken = default)
Parameters
parent
BackupEntryParent element. Can be null.
criteria
stringCriteria.
cancellationToken
CancellationToken
Returns
- IAsyncEnumerable<BackupEntry>
File list.
PublishAsync(BackupEntry, CancellationToken)
Get public url for the specified element.
Task<string> PublishAsync(BackupEntry entry, CancellationToken cancellationToken = default)
Parameters
entry
BackupEntryElement.
cancellationToken
CancellationToken
Returns
UnPublishAsync(BackupEntry, CancellationToken)
Remove public url for the specified element.
Task UnPublishAsync(BackupEntry entry, CancellationToken cancellationToken = default)
Parameters
entry
BackupEntryElement.
cancellationToken
CancellationToken
Returns
UploadAsync(BackupEntry, Stream, Action<int>, CancellationToken)
Upload file.
Task UploadAsync(BackupEntry entry, Stream stream, Action<int> progress, CancellationToken cancellationToken = default)
Parameters
entry
BackupEntryElement.
stream
StreamThe stream of the open file into which data from the service will be downloaded.
progress
Action<int>Progress notification.
cancellationToken
CancellationToken