register If Absent
Registers a service, if a service with the given name is not already registered. The service is not created until required, when the returned Provider is queried.
Return
A Provider that will create the service instance when queried.
Parameters
A name to use to identify the service.
The service implementation type. Instances of the service are created as for newInstance.
An action to configure the registration. You can use this to provide parameters to the service instance.
Registers a service, if a service with the given name is not already registered. The service is not created until required, when the returned Provider is queried.
Return
A Provider that will create the service instance when queried.
Since
8.7
Parameters
A name to use to identify the service.
The service implementation type. Instances of the service are created as for newInstance.