Skip to content

Commit d760185

Browse files
committed
Update docs
1 parent bc340fa commit d760185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class OrderService
7575
## How It Works
7676
- **Roslyn Source Generator** scans for commands and queries marked with `[GenerateDispatcher]`.
7777
- The dispatcher implementation is generated **at compile time**, avoiding reflection-based dependency resolution.
78-
- The generated dispatcher is **automatically registered in DI**, allowing easy injection and usage.
78+
- Aside from the generated dispatcher, the generator also creates an extension method for `IServiceCollection` called `RegisterCommandDispatcherAndHandlers` that ensures necessary dependencies **are automatically registered in DI**, allowing easy injection and usage. Simply call `services.RegisterCommandDispatcherAndHandlers()` during your DI setup.
7979

8080
## Benefits Over MediatR
8181
| Feature | MediatR | DotNet Dispatcher |

0 commit comments

Comments
 (0)