azure-servicebus-topics

Deserialize strongly typed object from Azure Service Bus Queue (v1) using BrokeredMessage

不想你离开。 提交于 2019-12-11 00:15:17
问题 for whatever reason I can't seem to figure out how to pull my object out of my queue and deserialize it back into what it was placed into it as (An AccountEventDTO ). Azure function successfully placing object into queue: [FunctionName("AccountCreatedHook")] public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "post", Route = null)]HttpRequestMessage req, TraceWriter log, [ServiceBus("topic-name", Connection = "BusConnectionString", EntityType =

How to purge messages for Service Bus Topic Subscription

a 夏天 提交于 2019-12-10 17:14:08
问题 Just wondering the best way (even if via Portal, Powershell, or C#) to purge the messages off of a Service Bus Topic's Subscription. Imagine we have a topic with 4 subscriptions, and we only want to purge the messages from one of the subscriptions. I have a feeling the only way may be to read the messages in a while loop, but hoping for something better. UPDATE: Apart from using code, you can use the Server Explorer as suggested in the answer - right click subscription and purge messages: 回答1

Using Azure Service Bus in local

[亡魂溺海] 提交于 2019-12-10 12:37:14
问题 I am working with Azure Service Bus Topics and Subscriptions. It's being used to send control messages across the application. The message listeners (subscribers) are running in a worker role and they are picking up the messages and processing the request. Each message in the bus can be picked up by only once, even if there are multiple listeners running simultaneously. There is no issue in using the Service Bus; however we are facing some issues while debugging/testing the application in

Sending message to azure service bus as a string using azure logic app

孤街浪徒 提交于 2019-12-10 09:36:00
问题 I am sending a message to a service bus topic using the logic app action "Send Message". When reading it in a console application, if i do this: SubscriptionClient subClient = SubscriptionClient.CreateFromConnectionString(connstr, topicName, subscriptionName); OnMessageOptions options = new OnMessageOptions(); options.AutoComplete = true; options.MaxConcurrentCalls = 1; subClient.OnMessage((message) => { string sjson = null; try { sjson = message.GetBody<string>(); Console.WriteLine(sjson); }

Getting Message Stats in Azure Service Bus

一世执手 提交于 2019-12-10 08:02:32
问题 I am writing a utility to monitor our Azure Service Bus Topics and Subscriptions. I can get the Topic details, such as name, queued message count and dead-letter message count, but I would like to get the number of messages that have been processed. Here is the code I am using: var sub = namespaceManager.GetSubscription(topicPath, subscriptionName); var name = sub.Name; var pending= sub.MessageCountDetails.ActiveMessageCount; var deadletter = sub.MessageCountDetails.DeadLetterMessageCount It

Which messaging service to work with Azure Function Fan-out pattern without fan-back?

本秂侑毒 提交于 2019-12-08 12:50:21
问题 We're new to the Azure messaging service and Functions, we learned the basic concept of different message service like Storage Queue, Service Bus Queue, Service Bus Topic and Event Hubs we also read the fan-out pattern by microsoft but that works more like fan-out then fan-back, which means during the fan-out process, current function still hold up there until all resource fan-back. A simple scenario would be, we are saving an object in azure function starter and after saved successfully into

The operation did not complete within the allotted timeout of 00:01:00

谁都会走 提交于 2019-12-06 01:54:14
问题 I am using code snippet to send message into the service bus topic. try { // sb is instance of ServiceBusConfig.GetServiceBusForChannel await sb.SendAsync(message); } catch (Exception ex) { this.logger.LogError( "chanel", "An error occurred while sending a notification: " + ex.Message, ex); throw; } and implementation is public async Task SendAsync(BrokeredMessage message) { if (this.topicClient == null) { this.topicClient = TopicClient.CreateFromConnectionString(this.primaryConnectionString,

Use Azure ARM Template to create Service Bus Topic Subscription with Sql Filter?

寵の児 提交于 2019-11-30 16:06:18
问题 I've been able to figure out how to setup an Azure ARM Template that creates/manages an Azure Service Bus Namespace, Topic and Subscription to receive all messages. However, the Microsoft documentation is extremely lacking still on ARM Tempates, and I am unable to figure out how to define a SqlFilter for the Subscription within the template that you can manage using the .NET SDK. Does anyone know how to add a Sql Filter to a Service Bus Topic Subscription within an ARM Template? Here's a link

Use Azure ARM Template to create Service Bus Topic Subscription with Sql Filter?

无人久伴 提交于 2019-11-30 15:58:04
I've been able to figure out how to setup an Azure ARM Template that creates/manages an Azure Service Bus Namespace, Topic and Subscription to receive all messages. However, the Microsoft documentation is extremely lacking still on ARM Tempates, and I am unable to figure out how to define a SqlFilter for the Subscription within the template that you can manage using the .NET SDK. Does anyone know how to add a Sql Filter to a Service Bus Topic Subscription within an ARM Template? Here's a link to the ARM Template I have for creating the Service Bus Topic and Subscription without Sql filter: