简体   繁体   中英

Publishing message using NServiceBus using Azure Function Cosmos DB Changefeed trigger

I have an Azure function and I'm trying to send a message with NServiceBus using Azure ServiceBus transport.

I have successfully got it working following this doc when the endpoint name does not have a “.” or period in the name. Eg: ASBTriggerQueue

However, my endpoint name has a period, “.” and I do not have control to change the endpoint name.

With period in the name I get the following error:

The 'NServiceBusFunctionEndpointTrigger-asb.triggerqueue' function is in error: 'NServiceBusFunctionEndpointTrigger-a sb.triggerqueue' is not a valid function name.

Is anyone aware of workarounds to fix this issue?

The problem is with the trigger function name. Functions doesn't like dots in it. With release 1.2.0 of NServiceBus.AzureFunctions.InProcess.ServiceBus you can override trigger function name. See documentation for details

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM