public AccountFile(Account account, StorageFile storageFile, IEnumerable<DriveFile> driveFiles, AccountFile parent) { DriveFiles.AddRange(driveFiles); this.StorageFile = storageFile; Parent = parent; Account = account; }
public AccountFile(Account account, StorageFile storageFile, AccountFile parent) { this.StorageFile = storageFile; Parent = parent; Account = account; }
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); }
public override Task DownloadFileAsync(StorageFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action<TransferProgress> progressCallback) { throw new NotImplementedException(); }
public override Task<StorageFile> UploadFileAsync(Stream stream, string fileName, StorageFile destFolder, CancellationToken token, Action<TransferProgress> progressCallback) { throw new NotImplementedException(); }
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; }
public override Task DeleteFileAsync(StorageFile id, CancellationToken token) { throw new NotImplementedException(); }
public abstract Task<StorageFile> CreateFolderAsync(string folderName, StorageFile destFolder, CancellationToken token);
public abstract Task DownloadFileAsync(StorageFile file, Stream stream, CancellationToken token, Action<TransferProgress> progressCallback);
public abstract Task DownloadFileAsync(StorageFile file, string destFolder, ActionIfFileExists actionIfFileExists, CancellationToken token, Action<TransferProgress> progressCallback);
public abstract Task<StorageFile> UploadFileAsync(string pathName, StorageFile destFolder, CancellationToken token, Action<TransferProgress> progressCallback);
public abstract Task DeleteFileAsync(StorageFile id, CancellationToken token);