Skip to content

Add support for dependency injection #442

@Kaliumhexacyanoferrat

Description

@Kaliumhexacyanoferrat

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

Metadata

Metadata

Labels

enhancementNew feature or requestpriorityHigh-priority feature on our roadmap

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions