import { Container } from 'inversify' ; import { BaseTelemetryProperties , ContextAwareLogger } from 'logger' ; import { ProcessEntryPointBase } from 'service-library' ; import { OnDemandDispatcher } from './sender/on-demand-dispatcher' ; export class WebApiScanRequestSenderEntryPoint extends ProcessEntryPointBase { protected getTelemetryBaseProperties ( ) { return { source : 'webApiScanRequestSender' } ; } protected async runCustomAction ( container ) { const logger = container . get ( ContextAwareLogger ) ; await logger . setup ( ) ; const dispatcher = container . get ( OnDemandDispatcher ) ; await dispatcher . dispatchScanRequests ( ) ; logger . logInfo ( `Scan requests sent successfully.` ) ; } }