https://github.com/purejoymind/commandhandlerimplementation
A simple Command Handler project which uses the features of Dependency Injection to efficiently implement a command handler.
https://github.com/purejoymind/commandhandlerimplementation
Last synced: 9 months ago
JSON representation
A simple Command Handler project which uses the features of Dependency Injection to efficiently implement a command handler.
- Host: GitHub
- URL: https://github.com/purejoymind/commandhandlerimplementation
- Owner: PureJoyMind
- Created: 2025-01-23T13:31:50.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-01-23T13:51:50.000Z (11 months ago)
- Last Synced: 2025-02-07T20:34:01.973Z (11 months ago)
- Language: C#
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What Does It Do?
This project is an implementation of a command handler. You would usually use tools like MediatR for such things but I wanted to understand the underlying system of command handlers a little better.
### Steps
1. Dynamically searches the assemblies for commands
2. Adds them as a scoped service
3. When asked for a handler, the service finds the requested one and creates a custom scope for it and returns it