Function HostContainer

  • A special identifier which can be used to get the container the service is currently being executed under. Optionally, combined with resolution contraints such as SkipSelf, this could be used to attain a reference to parent containers.

    Returns Token<ContainerInstance>

    Example

    An example of this can be found below:

    @Service([
    HostContainer()
    ])
    export class MyService {
    constructor (private container: ContainerInstance) { }
    }

Generated using TypeDoc