Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Templeton <seantempleton@outlook.com>2019-02-23 06:58:40 +0300
committerSean Templeton <seantempleton@outlook.com>2019-03-04 06:43:10 +0300
commit0c122ff5506ffa94a7cb72aa857d2a6a17899f89 (patch)
treebf20110da847ea07e404278ea3ef7a444744d518 /Duplicati/Library/Interface/IStreamingBackend.cs
parent3de04da39e789438589514c25f12e5a1a54c63ff (diff)
Change IBackend and IStreamingBackend to return Task for Put()
Diffstat (limited to 'Duplicati/Library/Interface/IStreamingBackend.cs')
-rw-r--r--Duplicati/Library/Interface/IStreamingBackend.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Duplicati/Library/Interface/IStreamingBackend.cs b/Duplicati/Library/Interface/IStreamingBackend.cs
index 740d4a670..33b8baff2 100644
--- a/Duplicati/Library/Interface/IStreamingBackend.cs
+++ b/Duplicati/Library/Interface/IStreamingBackend.cs
@@ -17,9 +17,8 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
#endregion
-using System;
-using System.Collections.Generic;
-using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
namespace Duplicati.Library.Interface
{
@@ -35,7 +34,8 @@ namespace Duplicati.Library.Interface
/// </summary>
/// <param name="remotename">The remote filename, relative to the URL</param>
/// <param name="stream">The stream to read from</param>
- void Put(string remotename, System.IO.Stream stream);
+ /// <param name="cancelToken">Token to cancel the operation.</param>
+ Task Put(string remotename, System.IO.Stream stream, CancellationToken cancelToken);
/// <summary>
/// Downloads a file with the remote data