I am unable to insert a string fetched from env into Queue name either through config service, process.env.QUEUE_NAME or through a util function returning queue string. Also this is not accessible either.
@Queue<MethodDecorator>({
name: 'queue.name',
// want to to do one of following.
//name: new ConfigService().get('AZURE_SERVICE_BUS_QUEUE'),
// name: process.env.AZURE_SERVICE_BUS_QUEUE,
// name: serviceBusQueueString(),
receiveMode: ReceiveMode.peekLock,
handlerOptions: {
autoComplete: false,
},
})
async myQueueEntity(@Ctx() context: SbContext): Promise<void> { //...
}
Hello,
I am unable to insert a string fetched from env into Queue name either through config service, process.env.QUEUE_NAME or through a util function returning queue string. Also
this
is not accessible either.