using System.IO;
using System.Threading.Tasks;
namespace VersOne.Epub.Environment
{
///
/// Provides methods for downloading remote content files.
///
public interface IContentDownloader
{
///
/// Starts downloading the remote content file.
///
/// The absolute URI of the remote content file.
/// The value for the User-Agent header of the HTTP request.
///
/// A task that represents the asynchronous download operation. The value of the TResult parameter contains the readable stream for the content of the remote content file.
///
Task DownloadAsync(string url, string userAgent);
}
}