Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class OrderService
## How It Works
- **Roslyn Source Generator** scans for commands and queries marked with `[GenerateDispatcher]`.
- The dispatcher implementation is generated **at compile time**, avoiding reflection-based dependency resolution.
- The generated dispatcher is **automatically registered in DI**, allowing easy injection and usage.
- 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.

## Benefits Over MediatR
| Feature | MediatR | DotNet Dispatcher |
Expand Down
Loading