import { DI } from "../../src" ; import type { TestModel } from "../models/TestModel" ; import { ProductionService } from "../services/ProductionService" ; const scopeA = new DI ( ) ; const scopeB = new DI ( ) ; export class Controller { @ scopeA . autowired ( ) private readonly productionServiceScopeA ! : ProductionService ; @ scopeB . autowired ( ) private readonly productionServiceScopeB ! : ProductionService ; public async getCounterScopeA ( ) { return this . productionServiceScopeA . getCounter ( ) ; } public async getDataScopeA ( ) { return this . productionServiceScopeA . getData ( ) ; } public async getCounterScopeB ( ) { return this . productionServiceScopeB . getCounter ( ) ; } public async getDataScopeB ( ) { return this . productionServiceScopeB . getData ( ) ; } }