forked from ddrilling/AsbCloudServer
30 lines
743 B
C#
30 lines
743 B
C#
using System.IO;
|
|
using AsbCloudApp.Data;
|
|
using AsbCloudApp.Requests.Import;
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
/// <summary>
|
|
/// Сервис парсинга файлов
|
|
/// </summary>
|
|
/// <typeparam name="TDto"></typeparam>
|
|
/// <typeparam name="TOptions"></typeparam>
|
|
public interface IParserService<TDto, in TOptions> : IParserService
|
|
where TDto : class, IId
|
|
where TOptions : ParserOptionsRequestBase
|
|
{
|
|
/// <summary>
|
|
/// Распарсить файл
|
|
/// </summary>
|
|
/// <param name="file"></param>
|
|
/// <param name="options"></param>
|
|
/// <returns></returns>
|
|
ParserResultDto<TDto> Parse(Stream file, TOptions options);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Сервис парсинга файлов
|
|
/// </summary>
|
|
public interface IParserService
|
|
{
|
|
} |