DD.WellWorkover.Cloud/AsbCloudApp/Services/Parser/IParserServiceWithOptions.cs
Степанов Дмитрий 501ef52938 Рефакторинг домена
1. Разделил сервисы парсинга.
2. Выделил интерфейс маркер для доп. параметров парсинга. Данный сервис применяется только для ограничения обощённых параметров.
2024-01-31 17:18:02 +05:00

23 lines
669 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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