mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
- 优化 CqrsDispatcher 的 request pipeline 路径,按请求类型与行为数量缓存 typed executor 形状并在单次分发中绑定当前 handler 与 behaviors - 补充 dispatcher 缓存回归测试,覆盖 pipeline executor 的首次创建、后续复用与行为顺序稳定
21 lines
493 B
C#
21 lines
493 B
C#
namespace GFramework.Cqrs.Tests.Cqrs;
|
|
|
|
/// <summary>
|
|
/// 记录双行为 pipeline 的实际执行顺序。
|
|
/// </summary>
|
|
internal static class DispatcherPipelineOrderState
|
|
{
|
|
/// <summary>
|
|
/// 获取按执行顺序追加的步骤名称。
|
|
/// </summary>
|
|
public static List<string> Steps { get; } = [];
|
|
|
|
/// <summary>
|
|
/// 清空当前记录,供下一次断言使用。
|
|
/// </summary>
|
|
public static void Reset()
|
|
{
|
|
Steps.Clear();
|
|
}
|
|
}
|