using System.Collections.Concurrent; namespace Beam.Fluent { public static partial class DownloadBuilder { public interface IDownloadStage { IDownloadStage SaveToDirectory(string dir); IDownloadStage SaveToFiles(IEnumerable files); IDownloadStage SaveToMemory(ConcurrentBag bag); DownloadEnumerable AsAsyncEnumerable(); void WaitForDownload(); Task WaitForDownloadAsync(); } } }