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

Next steps to expand DI functionality just in case #1

Open
dadhi opened this issue Jul 26, 2020 · 0 comments
Open

Next steps to expand DI functionality just in case #1

dadhi opened this issue Jul 26, 2020 · 0 comments

Comments

@dadhi
Copy link
Owner

dadhi commented Jul 26, 2020

Open-generics support

Add registrations dictionary of

Key: Type
Value: Func<Type, Expression<Func<IResolverContext, object>>>

where Type in a Value is the closed-generic known upon resolution

Register Type

Construct a manual expression.

RegisterDelegate and RegisterInstance

Additional dictionaries with instances and delegates.

We can establish a determined order of resolution across the registration dictionaries we have.

Singletons and Scopes

  • Add scope hierarchy ending with singleton.
  • Add OpenScope to IResolverContext
  • Single dictionary of Type -> object inside
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

No branches or pull requests

1 participant