Пример #1
0
 public AccountFile(Account account, StorageFile storageFile, IEnumerable<DriveFile> driveFiles, AccountFile parent)
 {
     DriveFiles.AddRange(driveFiles);
     this.StorageFile = storageFile;
     Parent = parent;
     Account = account;
 }
Пример #2
0
 public AccountFile(Account account, StorageFile storageFile, AccountFile parent)
 {
     this.StorageFile = storageFile;
     Parent = parent;
     Account = account;
 }
Пример #3
0
 public async override Task DownloadFileAsync(StorageFile file, Stream stream, CancellationToken token, Action<TransferProgress> progressCallback)
 {
     var f = (MockStorageFile)file;
     await stream.WriteAsync(f.content, 0, f.content.Length);
 }
Пример #4
0
 public override Task DownloadFileAsync(StorageFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action<TransferProgress> progressCallback)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 public override Task<StorageFile> UploadFileAsync(Stream stream, string fileName, StorageFile destFolder, CancellationToken token, Action<TransferProgress> progressCallback)
 {
     throw new NotImplementedException();
 }
Пример #6
0
 public async override Task<StorageFile> CreateFolderAsync(string folderName, StorageFile destFolder, CancellationToken token)
 {
     var ret = new MockStorageFile(this, folderName);
     files.Add(ret.Id, ret);
     return ret;
 }
Пример #7
0
 public override Task DeleteFileAsync(StorageFile id, CancellationToken token)
 {
     throw new NotImplementedException();
 }
Пример #8
0
 public abstract Task<StorageFile> CreateFolderAsync(string folderName, StorageFile destFolder, CancellationToken token);
Пример #9
0
 public abstract Task DownloadFileAsync(StorageFile file, Stream stream, CancellationToken token, Action<TransferProgress> progressCallback);
Пример #10
0
 public abstract Task DownloadFileAsync(StorageFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action<TransferProgress> progressCallback);
Пример #11
0
 public abstract Task<StorageFile> UploadFileAsync(string pathName, StorageFile destFolder, CancellationToken token, Action<TransferProgress> progressCallback);
Пример #12
0
 public abstract Task DeleteFileAsync(StorageFile id, CancellationToken token);