GeWuYou 42ddb80248 feat(core): 添加异步查询系统并优化命令系统实现
- 新增 AbstractAsyncQuery 基类支持异步查询操作
- 实现 AsyncQueryBus 和 IAsyncQueryBus 查询总线功能
- 添加 IAsyncQuery 接口定义异步查询契约
- 重构 CommandBus 的 SendAsync 方法移除不必要的 await
- 为 AbstractAsyncCommand 添加完整 XML 文档注释
- 更新 TEST_COVERAGE_PLAN.md 反映测试覆盖率提升至 91.5%
2026-01-18 20:39:23 +08:00

16 lines
460 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.Threading.Tasks;
namespace GFramework.Core.Abstractions.query;
/// <summary>
/// 异步查询接口,定义了执行异步查询操作的方法
/// </summary>
/// <typeparam name="TResult">查询结果的类型</typeparam>
public interface IAsyncQuery<TResult>
{
/// <summary>
/// 执行异步查询操作
/// </summary>
/// <returns>返回查询结果的Task结果类型为TResult</returns>
Task<TResult> DoAsync();
}