feat(generator): 添加运行时发现处理器接口的日志名称记录功能#233
Conversation
- 在 HandlerCandidateAnalysis 结构中新增 RuntimeDiscoveredHandlerInterfaceLogNames 字段 - 为运行时发现的处理器接口创建日志名称收集器并存储显示名称 - 修改构造函数和属性以支持新的日志名称数组字段 - 更新相等性比较逻辑以包含运行时发现接口日志名称的比较 - 在生成的代码中添加注释显示剩余的运行时接口发现目标 - 更新单元测试验证生成的注释内容是否正确包含接口名称
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🧰 Additional context used📓 Path-based instructions (3)**/*.cs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{cs,csproj}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*SourceGenerators/**/*.cs📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (8)📚 Learning: 2026-04-14T01:59:40.041ZApplied to files:
📚 Learning: 2026-04-14T01:59:40.041ZApplied to files:
📚 Learning: 2026-04-14T01:59:40.041ZApplied to files:
📚 Learning: 2026-04-14T01:59:40.041ZApplied to files:
📚 Learning: 2026-04-14T01:59:40.041ZApplied to files:
📚 Learning: 2026-04-14T01:59:40.041ZApplied to files:
📚 Learning: 2026-04-14T01:59:40.041ZApplied to files:
📚 Learning: 2026-04-06T12:45:43.921ZApplied to files:
🔇 Additional comments (4)
📝 Walkthrough概述该 PR 扩展了 CQRS 处理程序注册生成器,为每个处理程序实现候选项追踪额外的运行时接口发现目标元数据,并在生成的代码中发出相应的注释标记。生成器的相等性和哈希逻辑也随之更新。 变更内容
代码审查工作量估算🎯 3 (中等) | ⏱️ ~20 分钟 可能相关的 PR
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
52e40a1
into
refactor/cqrs-architecture-decoupling
Summary by CodeRabbit
测试
重构
注: 本次更新仅涉及内部实现改进,无公共 API 变更或用户可见功能更新。