2023-07-24 11:14:07 +05:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2023-10-20 11:41:55 +05:00
|
|
|
|
namespace AsbCloudApp.Services;
|
2023-07-24 11:14:07 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-10-20 11:24:04 +05:00
|
|
|
|
/// Сервис для генерации файлов отчётов
|
2023-07-24 11:14:07 +05:00
|
|
|
|
/// </summary>
|
2023-10-20 11:24:04 +05:00
|
|
|
|
public interface IReportMakerService<T>
|
2023-07-24 11:14:07 +05:00
|
|
|
|
{
|
2023-10-20 11:24:04 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Генерация файла
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="report">модель с данными для построения отчета</param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<Stream> MakeReportAsync(T report, CancellationToken cancellationToken);
|
2023-07-24 11:14:07 +05:00
|
|
|
|
}
|