服务总线中的主题 [英] topic in service bus

查看:78
本文介绍了服务总线中的主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在服务总线上有一个主题, 但主题不是阅读消息。逻辑应用程序阅读主题,但它永远不会被解雇。

I have a topic in a service bus,  but the topic is not reading the messages. The logic app read the topic but itis never fired.

主题不读取消息

推荐答案

我试图通过以下方式重现该问题:



1)通过控制台应用程序按照
doc
并接收消息。

2)创建服务总线命名空间,创建主题并创建订阅按照

doc
。然后通过创建
中提到的控制台应用程序向主题发送消息
doc
然后创建带有服务触发器的Logic应用程序并按照$ b添加操作$ b
doc

2) Created the Service Bus Namespace, create a topic and create a subscription to the topic by following the doc. Then send messages to the topic by creating the console application mentioned in the doc and then Create the Logic app with Service Trigger and add action by following the doc

在这两种方法中,我都可以毫无问题地阅读消息。



第二种方法只考虑服务总线连接器使用服务总线SDK要获取消息,这里是特定的

API
。 
$


消息计数是我的数量在批次中返回的ssages,它可以检索最大指定的数字。因此,您可以在工作流程中执行do until循环以获取更多消息,直到达到您期望它返回的计数。
希望这会有所帮助。

In both the approaches I am able to read the messages without any issues.

Only consideration in second approach is that the service bus connector uses service bus SDK to get the messages, here is the specific API

The message count is the number of messages which are returned in the batch, it may retrieve a number up to the maximum specified. So you can have a do until loop in the workflow to get more messages till it reaches the count you are expecting it to return. Hope this will help.





这篇关于服务总线中的主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆