How to use the inversify.LazyServiceIdentifer 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 microsoft / vscode-chrome-debug-core / src / chrome / internal / stackTraces / stackTracesLogic.ts View on Github external
constructor(
        @inject(TYPES.EventsConsumedByConnectedCDA) private readonly _dependencies: EventsConsumedByStackTrace,
        // TODO DIEGO: @multiInject(new LazyServiceIdentifer(() => TYPES.IStackTracePresentationLogicProvider)) private readonly _stackTracePresentationLogicProviders: IStackTracePresentationLogicProvider[],
        @inject(new LazyServiceIdentifer(() => TYPES.IStackTracePresentationLogicProvider)) private readonly _stackTracePresentationLogicProviders: IStackTracePresentationLogicProvider[],
        @inject(TYPES.IAsyncDebuggingConfiguration) private readonly _breakpointFeaturesSupport: IAsyncDebuggingConfiguration) {
    }
}
github stkevintan / ServiceX / test / specs / inject.spec.ts View on Github external
constructor(
    public other1: OtherModel,

    @Scope(Transient) public other2: OtherModel,

    @Inject(OtherModel) @Scope(Transient) public other3: OtherModel,

    @Inject(new LazyServiceIdentifer(() => OtherModel))
    @Scope(Transient)
    public other4: OtherModel,
  ) {
    super()
  }
github microsoft / vscode-chrome-debug-core / src / chrome / internal / breakpoints / features / breakpointsUpdater.ts View on Github external
constructor(
        @inject(new LazyServiceIdentifer(() => TYPES.ConnectedCDAConfiguration)) private readonly _configuration: ConnectedCDAConfiguration,
        @inject(TYPES.IEventsToClientReporter) private readonly _eventsToClientReporter: IEventsToClientReporter,
        @inject(PrivateTypes.CurrentBPRecipesForSourceRegistry) private readonly _clientCurrentBPRecipesRegistry: BPRsDeltaCalculatorFromStoredBPRs,
        @inject(PrivateTypes.SingleBreakpointSetterWithHitCountSupport) private readonly _singleBreakpointSetter: SingleBreakpointSetterWithHitCountSupport,
        @inject(PrivateTypes.CurrentBPRecipeStatusRetriever) private readonly _currentBPRecipeStatusRetriever: CurrentBPRecipeStatusRetriever,
        @inject(new LazyServiceIdentifer(() => PrivateTypes.PauseScriptLoadsToSetBPs)) private readonly _pauseScriptLoadsToSetBPs: PauseScriptLoadsToSetBPs,
        @inject(PrivateTypes.BPRecipeStatusCalculator) private readonly _bpRecipeStatusCalculator: BPRecipeStatusCalculator) {
        this._bpRecipeStatusCalculator.bpRecipeStatusChangedListeners.add(bpRecipe => this.onBPRecipeStatusChanged(bpRecipe));
        this._singleBreakpointSetter.bpRecipeStatusChangedListeners.add(bpRecipe => this.onBPRecipeStatusChanged(bpRecipe));
        this._singleBreakpointSetter.setOnPausedForBreakpointCallback(async _bpRecipes => new HitBreakpoint(this._eventsToClientReporter));
        this._singleBreakpointSetter.setBPRecipeWasResolvedCallback(bpRecipeWasResolved => {
            this._bpRecipeStatusCalculator.bpRecipeIsResolved(bpRecipeWasResolved);
            this._pauseScriptLoadsToSetBPs.bpRecipeIsResolved(bpRecipeWasResolved);
        });
    }
github microsoft / vscode-chrome-debug-core / src / chrome / internal / features / skipFiles.ts View on Github external
constructor(
        @inject(TYPES.EventsConsumedByConnectedCDA) private readonly _dependencies: EventsConsumedBySkipFilesLogic,
        @inject(TYPES.CDTPDiagnostics) private readonly chrome: CDTPDiagnostics,
        @inject(TYPES.DeleteMeScriptsRegistry) private readonly _scriptsRegistry: DeleteMeScriptsRegistry,
        @inject(new LazyServiceIdentifer(() => TYPES.StackTracesLogic)) private readonly stackTracesLogic: StackTracesLogic,
        @inject(TYPES.BaseSourceMapTransformer) private readonly sourceMapTransformer: BaseSourceMapTransformer,
        @inject(TYPES.BasePathTransformer) private readonly pathTransformer: BasePathTransformer,
    ) { }
}