A DI provider.
The token under which the value should be registered.
Optional
A class to register for the token.
A factory function that resolves the value to register for the token.
A DI provider.