Skip to content

Next steps to expand DI functionality just in case #1

@dadhi

Description

@dadhi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions