import { Container } from 'inversify' ; import { BaseTelemetryProperties , ContextAwareLogger } from 'logger' ; import { ProcessEntryPointBase } from 'service-library' ; import { Worker } from './worker/worker' ; export class WebApiScanJobManagerEntryPoint extends ProcessEntryPointBase { protected getTelemetryBaseProperties ( ) { return { source : 'webApiScanJobManager' } ; } protected async runCustomAction ( container ) { const logger = container . get ( ContextAwareLogger ) ; await logger . setup ( ) ; const worker = container . get < Worker > ( Worker ) ; await worker . init ( ) ; await worker . run ( ) ; } }