Commit ad426ad
Vadim Belov
Add AddMediator overload for auto-registration from caller
Introduced a new AddMediator extension method in ServiceCollectionExtensions that automatically registers handlers and mediator types from the calling assembly. This simplifies setup by removing the need to manually specify assemblies when configuring MediatR services.1 parent 2e48078 commit ad426ad
1 file changed
Lines changed: 13 additions & 0 deletions
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
22 | 35 | | |
23 | 36 | | |
24 | 37 | | |
| |||
0 commit comments