2024-01-29 14:39:53 +05:00
|
|
|
|
using System.IO;
|
|
|
|
|
using AsbCloudApp.Data;
|
2024-01-31 17:18:02 +05:00
|
|
|
|
using AsbCloudApp.Requests.ParserOptions;
|
2024-01-29 14:39:53 +05:00
|
|
|
|
|
2024-01-31 17:18:02 +05:00
|
|
|
|
namespace AsbCloudApp.Services.Parser;
|
2024-01-29 14:39:53 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-01-31 17:18:02 +05:00
|
|
|
|
/// Сервис парсинга файлов с доп. параметрами
|
2024-01-29 14:39:53 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="TDto"></typeparam>
|
|
|
|
|
/// <typeparam name="TOptions"></typeparam>
|
2024-01-31 17:18:02 +05:00
|
|
|
|
public interface IParserServiceWithOptions<TDto, in TOptions>
|
2024-01-29 14:39:53 +05:00
|
|
|
|
where TDto : class, IId
|
2024-01-31 17:18:02 +05:00
|
|
|
|
where TOptions : IParserOptionsRequest
|
2024-01-29 14:39:53 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Распарсить файл
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="file"></param>
|
|
|
|
|
/// <param name="options"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
ParserResultDto<TDto> Parse(Stream file, TOptions options);
|
|
|
|
|
}
|