azureservicebus

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); }

Enable CORS on Azure Service Bus Namespace

喜你入骨 提交于 2019-12-10 09:32:16
问题 I want to use the Azure Service Bus REST API in JavaScript. Unfortunately I'm running into cross origin problems, as my Service Bus namespace is not in the same domain as my site. I know that you can enable CORS with many Azure services, but I can't find any resource in the Azure documentation or elsewhere telling me how to do this for the Service Bus. Does anybody know if, and how, this can be done? 回答1: I've solved this issue by creating a separate Web App with the following Web.config

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

About Microsoft.ServiceBus.Messaging.LeaseLostException

别说谁变了你拦得住时间么 提交于 2019-12-10 04:47:36
问题 I got an exception of Microsoft.ServiceBus.Messaging.LeaseLostException, in my EventHub processor. what does this exception mean? What is the possible root cause of this exception? Following are stack track: at Microsoft.ServiceBus.Messaging.BlobLeaseManager.d__24.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter

Windows Azure MessageLockLostException

ⅰ亾dé卋堺 提交于 2019-12-10 03:16:57
问题 I'm having issues with Azure Message Bus Queues. I'm having MessageLockLostException thrown and The request operation did not complete within the allotted timeout of 00:01:10. The time allotted to this operation may have been a portion of a longer timeout . I've set my queue into ReceiveMode.PeekLock . I also check if(message.LockedUntilUtc.Minute <= 1) message.RenewLock(); Why would this happen, what's causing the lock to give out? I was reading somewhere from the point where you Receive you

Azure Service Bus Serialization Type

泄露秘密 提交于 2019-12-09 14:42:06
问题 We've started investigating the use of the Windows Azure Service Bus as a replacement for our current queues as we move towards a service orientated architecture. Most of the documentation is clear; however I having a hard time ascertaining which type of serialization the BrokeredMessage uses when provided with a body. For example, let's say I instantiate a BrokeredMessage object as below: ICommand sendMessageCommand = new SendMessageCommand { Title = "A new message title", Body = "A new

Guidance OnMessageOptions.AutoRenewTimeout

我是研究僧i 提交于 2019-12-09 08:21:30
问题 Can someone offer some more guidance on the use of the Azure Service Bus OnMessageOptions.AutoRenewTimeout http://msdn.microsoft.com/en-us/library/microsoft.servicebus.messaging.onmessageoptions.autorenewtimeout.aspx as I haven't found much documentation on this option, and would like to know if this is the correct way to renew a message lock My use case: 1) Message Processing Queue has a Lock Duration of 5 minutes (The maximum allowed) 2) Message Processor using the OnMessageAsync message

Azure worker role recycling with unhandled Service Bus fault message

天大地大妈咪最大 提交于 2019-12-08 23:30:31
I have been running an Azure worker role deployment that uses the Microsoft.ServiceBus 2.2 library to respond to jobs posted from other worker roles and web roles. Recently (suspiciously around the time of the OS update discussed here ), the instances of the cluster started constantly recycling, rebooting, running for a short period of time, and then recycling again. I can confirm that the role instances make it all the way through the OnStart() method of my RoleEntryPoint from the trace messages I have in my diagnostics. Occasionally, the Instances pane of the Azure Management Portal would

Does Azure AppFabric really support AMQP 1.0?

假如想象 提交于 2019-12-08 13:31:36
问题 I watched the AMQP 1.0 presentation by David Ingham, responsible for AMQP at Microsoft, which is about Azure AppFabric's support of AMQP messaging in the cloud. David says AppFabric will support AMQP for the messaging patterns Queue and Pub/Sub . Yet when checking documentation on official websites such as http://www.windowsazure.com/en-us/develop/java/how-to-guides/service-bus-queues/ (especially looking at non-.net stuff that, according to David's talk is supposed to connect via AMQP,

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