Files
PIbd-32_BuslaevRoman_KOP/ComponentOrientedPlatform/Abstractions/IReportDocumentWithContextTextsContract.cs
2025-10-21 13:17:55 +04:00

29 lines
1.4 KiB
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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComponentOrientedPlatform.Abstractions;
public interface IReportDocumentWithContextTextsContract :
IReportDocumentContract
{
/// <summary>
/// Создание документа в асинхронном режиме
/// </summary>
/// <param name="filePath">Путь до файла</param>
/// <param name="header">Заголовок документа</param>
/// <param name="paragraphs">Список абзацев текста</param>
/// <exception cref="ArgumentNullException">Не указан путь дофайла</exception>
/// <exception cref="ArgumentNullException">Не задан заголовокдокумента</exception>
/// <exception cref="ArgumentNullException">Список абзацев текста незадан</exception>
/// <exception cref="ArgumentOutOfRangeException">Передан пустой списокабзацев текста</exception>
/// <exception cref="ArgumentNullException">В списке абзацев текста имеетсяабзац с не заданной строкой</exception>
/// <returns>Задача по созданию документа</returns>
Task CreateDocumentAsync(
string filePath,
string header,
List<string> paragraphs
);
}