How to use the inversify.METADATA_KEY.NAMED_TAG function in inversify

To help you get started, we’ve selected a few inversify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stkevintan / ServiceX / src / ioc / Container.ts View on Github external
isBoundNamed(
    serviceIdentifier: interfaces.ServiceIdentifier,
    named: string | number | symbol,
  ): boolean {
    return this.isBoundTagged(serviceIdentifier, METADATA_KEY.NAMED_TAG, named)
  }
github stkevintan / ServiceX / src / ioc / Container.ts View on Github external
getNamed(
    serviceIdentifier: interfaces.ServiceIdentifier,
    named: string | number | symbol,
  ): T {
    return this.getTagged(serviceIdentifier, METADATA_KEY.NAMED_TAG, named)
  }