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

Add support for dependency injection #442

Open
Kaliumhexacyanoferrat opened this issue Jan 5, 2024 · 0 comments
Open

Add support for dependency injection #442

Kaliumhexacyanoferrat opened this issue Jan 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

As a developer of a web application, I would like to use dependency injection for my services and controllers, so that I do not need to resolve all dependencies manually.

Example

using GenHTTP.Modules.DependencyInjection;

layout.AddService<MyClass>(); // resolves dependencies of MyClass when creating the instance

Acceptance criteria

  • The functionality is implemented decoupled from the existing logic and put into a new module
  • The functionality uses the default way of .NET to resolve dependencies
  • The feature is documented on the GenHTTP website
  • The feature is covered by acceptance tests
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added the enhancement New feature or request label Jan 5, 2024
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