Construct a Providers instance
default set of services
InternaladdRegister a factory for a key.
Key that factory will provide.
Function that creates an instance to provide.
this for chaining.
Register a factory for a key with a set of dependencies.
Key that factory will provide.
Set of things this instance depends on. Will be provided to factory function via services.
Function that creates an instance to provide.
this for chaining.
Register an instance by key. This will overwrite existing instances.
Key of the instance being provided.
Instance to provide.
this for chaining.
InternalcomposeRegister a factory (that expects the initial value that is not undefined) for a key.
key of the instance being provided
this for chaining
Register a factory (that expects an initial value that is not undefined) for a key with a set of dependencies.
Key that factory will provide.
Set of things this instance depends on. Will be provided to factory function via services.
Function that creates an instance to provide.
this for chaining.
Build a single service.
Service to build.
Whether to reconstruct all dependencies.
The service instance, or undefined.
Build the full set of services.
all resolved services
Build a single service and assert that it is not undefined.
Service to build.
Wheter to reconstruct all dependencies.
The service instance
Build the full set of services, asserting that the specified keys are not undefined.
Instances that must be not undefined
All resolve services
ServiceCollection is an interface that describes a set of methods to register services. This, in a lighter way, mimics the .NET dependency injection service collection functionality, except for instances rather than types.