Exemplo n.º 1
0
 public Task <string> SaveFileAsync(string fileName, byte[] data)
 {
     SaveFileCalls.Add(new Tuple <string, byte[]>(fileName, data));
     SaveFileHandler?.Invoke(fileName, data);
     return(Task.FromResult(string.Empty));
 }
Exemplo n.º 2
0
 public Task <string> FetchFileAsync(string remotePath, ulong remoteBlobId, string localPath, CancellationToken cancellationToken)
 {
     SaveFileCalls.Add(new Tuple <string, string>(remotePath, localPath));
     SaveFileHandler?.Invoke(remotePath, remoteBlobId, localPath);
     return(Task.FromResult(string.Empty));
 }