set
set : { < T > ( service : ServiceMetadata < T > ) : ContainerInstance ; < T > ( type : Constructable < T > , instance : T ) : ContainerInstance ; < T > ( type : AbstractConstructable < T > , instance : T ) : ContainerInstance ; < T > ( name : string , instance : T ) : ContainerInstance ; < T > ( token : Token < T > , instance : T ) : ContainerInstance ; < T > ( token : ServiceIdentifier , instance : T ) : ContainerInstance ; < T > ( metadata : ServiceOptions < T > ) : ContainerInstance ; < T > ( metadataArray : ServiceOptions < T > [] ) : ContainerInstance ; } = ...
Type declaration
< T > ( service : ServiceMetadata < T > ) : ContainerInstance
Parameters
service : ServiceMetadata < T >
Returns ContainerInstance
< T > ( type : Constructable < T > , instance : T ) : ContainerInstance
Parameters
type : Constructable < T >
instance : T
Returns ContainerInstance
< T > ( type : AbstractConstructable < T > , instance : T ) : ContainerInstance
Parameters
type : AbstractConstructable < T >
instance : T
Returns ContainerInstance
< T > ( name : string , instance : T ) : ContainerInstance
Returns ContainerInstance
< T > ( token : Token < T > , instance : T ) : ContainerInstance
Parameters
token : Token < T >
instance : T
Returns ContainerInstance
< T > ( token : ServiceIdentifier , instance : T ) : ContainerInstance
Parameters
token : ServiceIdentifier
instance : T
Returns ContainerInstance
< T > ( metadata : ServiceOptions < T > ) : ContainerInstance
Parameters
metadata : ServiceOptions < T >
Returns ContainerInstance
< T > ( metadataArray : ServiceOptions < T > [] ) : ContainerInstance
Parameters
metadataArray : ServiceOptions < T > []
Returns ContainerInstance
Retrieves the service with given name or type from the service container. Optionally, parameters can be passed in case if instance is initialized in the container for the first time.