mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-06 16:16:44 +08:00
- 修复 CqrsDispatcher 的 pipeline invoker 重复创建,并补齐缓存线程模型文档 - 优化 CQRS 与 generator 回归测试的并发保护和稳定语义断言 - 更新 cqrs-rewrite 跟踪与 trace,记录 RP-062 的 PR review follow-up 验证结果
22 lines
787 B
C#
22 lines
787 B
C#
using GFramework.Cqrs.Abstractions.Cqrs;
|
|
|
|
namespace GFramework.Cqrs.Tests.Cqrs;
|
|
|
|
/// <summary>
|
|
/// 为双行为顺序回归提供最终请求处理器。
|
|
/// </summary>
|
|
internal sealed class DispatcherPipelineOrderCacheRequestHandler : IRequestHandler<DispatcherPipelineOrderCacheRequest, int>
|
|
{
|
|
/// <summary>
|
|
/// 记录处理器执行并返回固定结果。
|
|
/// </summary>
|
|
/// <param name="request">当前请求。</param>
|
|
/// <param name="cancellationToken">取消令牌。</param>
|
|
/// <returns>固定整数结果。</returns>
|
|
public ValueTask<int> Handle(DispatcherPipelineOrderCacheRequest request, CancellationToken cancellationToken)
|
|
{
|
|
DispatcherPipelineOrderState.Record("Handler");
|
|
return ValueTask.FromResult(3);
|
|
}
|
|
}
|