2021-11-20 13:52:28 +01:00
|
|
|
using System.Globalization;
|
2021-11-19 16:11:12 +01:00
|
|
|
using System.IO;
|
|
|
|
|
|
2021-11-20 13:52:28 +01:00
|
|
|
namespace zero.Utils;
|
2021-11-19 16:11:12 +01:00
|
|
|
|
|
|
|
|
public interface ITableCreator<T> : IDisposable
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Create a readable stream from a source enumerable
|
|
|
|
|
/// </summary>
|
|
|
|
|
Task<MemoryStream> CreateStream(IAsyncEnumerable<T> source, CultureInfo culture, CancellationToken token = default);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Create a readable stream from a source enumerable
|
|
|
|
|
/// </summary>
|
|
|
|
|
MemoryStream CreateStream(IEnumerable<T> source, CultureInfo culture);
|
|
|
|
|
}
|