Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dependency injection when instantiating message handlers #42

Closed
Jericho opened this issue Feb 21, 2024 · 1 comment
Closed

Use dependency injection when instantiating message handlers #42

Jericho opened this issue Feb 21, 2024 · 1 comment
Assignees
Labels
Enhancement New feature or request
Milestone

Comments

@Jericho
Copy link
Owner

Jericho commented Feb 21, 2024

By taking advantage of Microsoft's DI we will be able to inject any number of parameters when instantiating new handlers rather than the current hard coded logic.

The current logic will use a constructor with a single parameter of type ILogger, or a parameterless constructor.

Using DI will allow developers to use any number of parameters in their implementation of the IMessageHandler interface.

@Jericho Jericho added the Enhancement New feature or request label Feb 21, 2024
@Jericho Jericho added this to the 9.1.0 milestone Feb 21, 2024
@Jericho Jericho self-assigned this Feb 21, 2024
@Jericho
Copy link
Owner Author

Jericho commented Feb 24, 2024

🎉 This issue has been resolved in version 9.1.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant