1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-28 14:13:25 +00:00

PM-2149 WIP adding cancellation token to calls for the attachment upload

This commit is contained in:
Federico Maccaroni
2023-05-08 17:09:59 +02:00
parent bf463926a3
commit 8148bb9ff2
9 changed files with 58 additions and 47 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Bit.Core.Models.Domain;
@@ -6,6 +7,6 @@ namespace Bit.Core.Abstractions
{
public interface IAzureFileUploadService
{
Task Upload(string uri, EncByteArray data, Func<Task<string>> renewalCallback);
Task Upload(string uri, EncByteArray data, Func<CancellationToken, Task<string>> renewalCallback, CancellationToken cancellationToken);
}
}