forked from ddrilling/AsbCloudServer
21 lines
563 B
C#
21 lines
563 B
C#
|
using System.IO;
|
||
|
using System.Threading;
|
||
|
using System.Threading.Tasks;
|
||
|
using AsbCloudApp.Requests.ExportOptions;
|
||
|
|
||
|
namespace AsbCloudApp.Services;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Экспорт данных
|
||
|
/// </summary>
|
||
|
public interface IExportService<in TOptions>
|
||
|
where TOptions : IExportOptionsRequest
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Экспортировать данные
|
||
|
/// </summary>
|
||
|
/// <param name="options"></param>
|
||
|
/// <param name="token"></param>
|
||
|
/// <returns></returns>
|
||
|
Task<(string FileName, Stream File)> ExportAsync(TOptions options, CancellationToken token);
|
||
|
}
|