【发布时间】:2016-12-30 07:59:59
【问题描述】:
工作场景:
- 将 Msg1 发布到主题
- 将 Msg2 发布到主题
- 读取 Msg1、Msg2
不工作:
- 将 Msg1 发布到主题
- 通过订阅者从主题读取 Msg1,但我没有标记为完成。(仍在队列中)
- 将 Msg2 发布到主题
-
阅读 Msgs.. 实际:我只阅读 Msg2 期望:想阅读 Msg1、Msg2。
if (namespaceManager.TopicExists(topic)) { var lstOfValues = new List<SITConfirmation>(); SubscriptionClient Client = SubscriptionClient.CreateFromConnectionString(ConfigurationManager.ConectionString(), topic, subscriber); IEnumerable<BrokeredMessage> messages = await Client.ReceiveBatchAsync(10, TimeSpan.FromMilliseconds(500)); }
【问题讨论】:
-
订阅时设置的 MaxDelliveryCount 是什么?存储 Blob 与此有何关系?
-
MaxDelliveryCount 为 10
标签: azure azure-blob-storage servicebus azure-servicebus-topics