Creates a child scope. Scoped services resolve to one instance per scope; singletons are shared with the parent.
A child container
Gets the lazily created scope owned by this request.
A context supporting deferred cleanup
The same scope for every call on this context
Reports whether a token is registered.
The token to look up
true if registered or externally resolvable
Registers a provider under a token.
The service type
The token to register under
Class, factory, or value provider
Optionaloptions: ProviderOptions<T>
Lifecycle scope
Nothing
Resolves an instance, constructing it (and its dependencies) as needed.
The expected service type
The token to resolve
The resolved instance
Resolves a string token with an explicitly chosen service type.
Registered name
The constructed or cached value
Resolves a token held as the token union.
Registered token
The constructed or cached value
Dependency injection container.
Example
Since
0.1.0