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

feat(di): Lifetimes support #20

Merged
merged 27 commits into from
Sep 18, 2024
Merged

feat(di): Lifetimes support #20

merged 27 commits into from
Sep 18, 2024

Conversation

chesedo
Copy link
Owner

@chesedo chesedo commented Sep 17, 2024

Adds support for lifetimes on dependencies. The usual big three are supported:

  • Singleton
  • Scoped
  • Transient

These lifetimes also work for async dependencies.

This also does a bigger refactoring of the dependency container internals as it got too complex for the old structure. Expanding it will now be easier going forward.

@chesedo chesedo enabled auto-merge (squash) September 18, 2024 10:15
@chesedo chesedo merged commit 654c716 into main Sep 18, 2024
3 checks passed
@chesedo chesedo deleted the lifetimes branch September 18, 2024 10:18
This was referenced Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant