Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.inGroup(this._componentFactoryGroupId);
_log.debug(`Registering ${TradingModuleContainerConst.cashTileModel}`);
this.container
.register(TradingModuleContainerConst.cashTileModel, CashTileModel)
.inject(SystemContainerConst.router, SystemContainerConst.region_manager)
.singletonPerContainer();
_log.debug(`Registering ${TradingModuleContainerConst.blotterComponentFactory}`);
this.container
.register(TradingModuleContainerConst.blotterComponentFactory, BlotterComponentFactory)
.inject(MicroDiConsts.owningContainer, SystemContainerConst.router)
.singleton()
.inGroup(this._componentFactoryGroupId);
_log.debug(`Registering ${TradingModuleContainerConst.blotterModel}`);
this.container
.register(TradingModuleContainerConst.blotterModel, BlotterModel)
.inject(SystemContainerConst.router, SystemContainerConst.region_manager)
.singletonPerContainer();
_log.groupEnd();
}
_configureContainer() {
this._container
.register(ShellModuleContainerConst.workspace_region, MultiItemRegionModel)
.inject(
{resolver: LiteralResolver.resolverName, value: RegionNames.workspaceRegion},
SystemContainerConst.router,
SystemContainerConst.region_manager
)
.singleton();
this._container
.register(ShellModuleContainerConst.blotter_region, SingleItemRegionModel)
.inject(
{resolver: LiteralResolver.resolverName, value: RegionNames.blotterRegion},
SystemContainerConst.router,
SystemContainerConst.region_manager
)
.singleton();
this._container
.register(ShellModuleContainerConst.shell_model, ShellModel)
.inject(
SystemContainerConst.router,
SystemContainerConst.module_loader,
ShellModuleContainerConst.workspace_region,
ShellModuleContainerConst.blotter_region
);
}
_log.debug(`Registering ${TradingModuleContainerConst.cashTileComponentFactory}`);
this.container
.register(TradingModuleContainerConst.cashTileComponentFactory, CashTileComponentFactory)
.inject(EspDiConsts.owningContainer, SystemContainerConst.router)
.singleton()
.inGroup(this._componentFactoryGroupId);
_log.debug(`Registering ${TradingModuleContainerConst.blotterComponentFactory}`);
this.container
.register(TradingModuleContainerConst.blotterComponentFactory, BlotterComponentFactory)
.inject(EspDiConsts.owningContainer, SystemContainerConst.router)
.singleton()
.inGroup(this._componentFactoryGroupId);
_log.debug(`Registering ${TradingModuleContainerConst.blotterModel}`);
this.container
.register(TradingModuleContainerConst.blotterModel, BlotterModel)
.inject(SystemContainerConst.router, SystemContainerConst.region_manager)
.singletonPerContainer();
_log.groupEnd();
}
configureContainer() {
_log.group('Configuring container');
_log.debug(`Registering ${TradingModuleContainerConst.cashTileComponentFactory}`);
this.container
.register(TradingModuleContainerConst.cashTileComponentFactory, CashTileComponentFactory)
.inject(MicroDiConsts.owningContainer, SystemContainerConst.router)
.singleton()
.inGroup(this._componentFactoryGroupId);
_log.debug(`Registering ${TradingModuleContainerConst.cashTileModel}`);
this.container
.register(TradingModuleContainerConst.cashTileModel, CashTileModel)
.inject(SystemContainerConst.router, SystemContainerConst.region_manager)
.singletonPerContainer();
_log.debug(`Registering ${TradingModuleContainerConst.blotterComponentFactory}`);
this.container
.register(TradingModuleContainerConst.blotterComponentFactory, BlotterComponentFactory)
.inject(MicroDiConsts.owningContainer, SystemContainerConst.router)
.singleton()
.inGroup(this._componentFactoryGroupId);
_log.debug(`Registering ${TradingModuleContainerConst.blotterModel}`);
this.container
.register(TradingModuleContainerConst.blotterModel, BlotterModel)
.inject(SystemContainerConst.router, SystemContainerConst.region_manager)
.singletonPerContainer();
_log.groupEnd();
}
_configureContainer() {
this._container
.register(ShellModuleContainerConst.workspace_region, MultiItemRegionModel)
.inject(
{resolver: LiteralResolver.resolverName, value: RegionNames.workspaceRegion},
SystemContainerConst.router,
SystemContainerConst.region_manager
)
.singleton();
this._container
.register(ShellModuleContainerConst.blotter_region, SingleItemRegionModel)
.inject(
{resolver: LiteralResolver.resolverName, value: RegionNames.blotterRegion},
SystemContainerConst.router,
SystemContainerConst.region_manager
)
.singleton();
this._container
.register(ShellModuleContainerConst.shell_model, ShellModel)
.inject(
SystemContainerConst.router,
SystemContainerConst.module_loader,
ShellModuleContainerConst.workspace_region,
_configureContainer() {
this._container
.register(ShellModuleContainerConst.workspace_region, MultiItemRegionModel)
.inject(
{resolver:LiteralResolver.resolverName, value: RegionNames.workspaceRegion},
SystemContainerConst.router,
SystemContainerConst.region_manager
)
.singleton();
this._container
.register(ShellModuleContainerConst.blotter_region, SingleItemRegionModel)
.inject(
{resolver:LiteralResolver.resolverName, value: RegionNames.blotterRegion},
SystemContainerConst.router,
SystemContainerConst.region_manager
)
.singleton();
this._container
.register(ShellModuleContainerConst.shell_model, ShellModel)
.inject(
SystemContainerConst.router,
SystemContainerConst.module_loader,
ShellModuleContainerConst.workspace_region,
ShellModuleContainerConst.blotter_region
);
}
_configureContainer() {
this._container
.register(ShellModuleContainerConst.workspace_region, MultiItemRegionModel)
.inject(
{resolver:LiteralResolver.resolverName, value: RegionNames.workspaceRegion},
SystemContainerConst.router,
SystemContainerConst.region_manager
)
.singleton();
this._container
.register(ShellModuleContainerConst.blotter_region, SingleItemRegionModel)
.inject(
{resolver:LiteralResolver.resolverName, value: RegionNames.blotterRegion},
SystemContainerConst.router,
SystemContainerConst.region_manager
)
.singleton();
this._container
.register(ShellModuleContainerConst.shell_model, ShellModel)
.inject(
SystemContainerConst.router,
SystemContainerConst.module_loader,
ShellModuleContainerConst.workspace_region,