import { Container } from 'inversify' ; import { BaseTelemetryProperties , ContextAwareLogger } from 'logger' ; import { ProcessEntryPointBase } from 'service-library' ; import { NotificationSender } from './sender/notification-sender' ; export class WebApiNotificationSenderEntryPoint extends ProcessEntryPointBase { protected getTelemetryBaseProperties ( ) { return { source : 'webApiNotificationSender' } ; } protected async runCustomAction ( container ) { const logger = container . get ( ContextAwareLogger ) ; await logger . setup ( ) ; const sender = container . get < NotificationSender > ( NotificationSender ) ; await sender . sendNotification ( ) ; } }