admin管理员组文章数量:1304525
I have an issue that is happening in my Azure Function and Service Bus usage with Mass Transit implementation. I have attached the repository where the issue is shown. Before running it, you need to fill the connection string in ProblemWithMassTransit/Program.cs
- variable con. And you also need to fill this connection string in ProblemWithMassTransitFunctions/localsettings.json
.
The point is that when the TestMessage is published, it is captured by Function1, which passes it to the Mass Transit consumer. It encounters a problem and throws an exception. The correct way is to publish the Fault message which is done by Mass Transit. However, Function1 is called again in the next step and it is called again until max delivery attempt - 10. Yet, autocomplete is set to true in host.json and Mass Transit documentation says that in that case Mass Transit will try to mark the message as processed.
How to solve this? Is this a Mass Transit issue or an Azure function issue? Unfortunately I can't find a solution on the internet.
Test repository -
Thank you very much
本文标签: cNETAzure Function with Mass TransitStack Overflow
版权声明:本文标题:c# - .NET - Azure Function with Mass Transit - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741783876a2397468.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论