Files
duplicati/Duplicati/Library/Backend/BackendInterface/IStreamingBackend.cs
T
kenneth.skovhede@gmail.com c9ce3a3216 Added options to throttle up and download.
GPG encryption now works correctly.
Asyncronous uploads now work as expected.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@73 59da171f-624f-0410-aa54-27559c288bec
2009-01-25 19:33:36 +00:00

34 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Duplicati.Library.Backend
{
/// <summary>
/// An interface a backend may implement if it supports streaming operations.
/// </summary>
public interface IStreamingBackend : IBackend
{
/// <summary>
/// A value that indicates if the backend supports streaming.
/// Backends that implement the IStreamingBackend interface should return true.
/// </summary>
bool SupportsStreaming { get; }
/// <summary>
/// Puts the content of the file to the url passed
/// </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);
/// <summary>
/// Downloads a file with the remote data
/// </summary>
/// <param name="remotename">The remote filename, relative to the URL</param>
/// <param name="stream">The stream to write data to</param>
void Get(string remotename, System.IO.Stream stream);
}
}