mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 将 CommandBus 重命名为 CommandExecutor 并更新相关接口 - 将 QueryBus 重命名为 QueryExecutor 并更新相关接口 - 将 AsyncQueryBus 重命名为 AsyncQueryExecutor 并更新相关接口 - 更新 ArchitectureContext 中的服务引用和错误消息 - 修改 ArchitectureServices 中的私有字段和公共属性名称 - 更新所有测试文件中的实例变量和服务引用 - 修改测试类名称以匹配新的执行器命名 - 更新状态机系统测试中的容器注册项
17 lines
584 B
C#
17 lines
584 B
C#
namespace GFramework.Core.Abstractions.query;
|
|
|
|
|
|
/// <summary>
|
|
/// 定义一个查询执行器接口,用于发送查询请求并获取结果。
|
|
/// </summary>
|
|
public interface IQueryExecutor
|
|
{
|
|
/// <summary>
|
|
/// 发送查询请求并返回结果。
|
|
/// </summary>
|
|
/// <typeparam name="TResult">查询结果的类型。</typeparam>
|
|
/// <param name="query">要发送的查询对象,必须实现 IQuery<TResult> 接口。</param>
|
|
/// <returns>查询的结果,类型为 TResult。</returns>
|
|
TResult Send<TResult>(IQuery<TResult> query);
|
|
}
|