using System.IO; using System.Threading.Tasks; namespace PCL.Core.IO.Download; /// /// 下载写入器。 /// public interface IDlWriter { /// /// 是否支持并行写入,即是否支持多次调用 。 /// public bool IsSupportParallel { get; } /// /// 创建写入流。 /// /// 写入流 public Task CreateStreamAsync(); /// /// 停止写入并释放资源。 /// public Task StopAsync(); /// /// 完成写入,用于执行某些并行操作的收尾工作 (例如合并文件)。 /// public Task FinishAsync(); }