You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Verify the class name ends with `Handler` or `Consumer`
74
+
- Check that the method name is `Handle`, `HandleAsync`, `Consume`, or `ConsumeAsync`
75
+
- Ensure the handler isn't marked with `[FoundatioIgnore]`
76
+
- Handlers nested in generic classes are not supported (e.g., `OuterClass<T>.MyHandler`)
77
+
- Verify `AddHandlers()` was called during DI configuration
78
+
79
+
For deeper inspection, you can also [view the generated source files](#enabling-generated-file-output) to see the actual registration code in `*_MediatorHandlers.g.cs`.
80
+
54
81
### Example Generated Handler
55
82
56
83
Here's what a generated handler wrapper looks like:
@@ -92,6 +119,10 @@ internal static class OrderHandler_CreateOrder_Handler
0 commit comments