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
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Let's keep pushing for clarity, usability, and excellence—both in code and use
36
36
- Order with `[FoundatioOrder(int)]`; lower runs earlier in Before and later in After/Finally.
37
37
38
38
## DI and generation
39
-
- Register: `services.AddMediator()` (see `src/Foundatio.Mediator.Abstractions/MediatorExtensions.cs`). Generator emits `[assembly: FoundatioHandlerModule]` and DI `HandlerRegistration` per message.
39
+
- Register: `services.AddMediator()` (see `src/Foundatio.Mediator.Abstractions/MediatorExtensions.cs`). Generator emits `[assembly: FoundatioModule]` and DI `HandlerRegistration` per message.
40
40
- Handlers are not auto-registered; wrappers create instances via `ActivatorUtilities` if not in DI. Register handlers to control lifetime.
41
41
- Middleware lifetime: `Mediator.GetOrCreateMiddleware<T>` caches if not in DI; register to control lifetime.
0 commit comments