20 lines
716 B
C#
20 lines
716 B
C#
using System.Threading.Tasks;
|
|
using XP.ReportEngine.Models;
|
|
|
|
namespace XP.ReportEngine.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// 报告生成器接口(格式无关)| Report generator interface (format-agnostic)
|
|
/// </summary>
|
|
public interface IReportGenerator
|
|
{
|
|
/// <summary>
|
|
/// 异步生成报告 | Generate report asynchronously
|
|
/// </summary>
|
|
/// <param name="context">报告上下文数据 | Report context data</param>
|
|
/// <param name="options">生成选项 | Generation options</param>
|
|
/// <returns>生成结果 | Generation result</returns>
|
|
Task<ReportResult> GenerateAsync(ReportContext context, ReportGenerationOptions options);
|
|
}
|
|
}
|