azureservicebus

Create Subscription in a Topic programatically using Windows Azure Service Bus REST API

好久不见. 提交于 2019-12-24 15:46:54
问题 Is it possible to create a Subscription in an existing Topic programmatically in Azure Service Bus using the REST API? I would like to create one on the fly and then delete programmatically as well. 回答1: Yes, you can. Please look at the REST API documentation here: Create Subscription: http://msdn.microsoft.com/en-us/library/windowsazure/hh780748.aspx Delete Subscription: http://msdn.microsoft.com/en-us/library/windowsazure/hh780740.aspx For a full list of REST API operation on Service Bus:

Azure Service Bus Topic subscribe from CRM plugin

非 Y 不嫁゛ 提交于 2019-12-24 08:47:02
问题 I am successfully posting messages from a CRM plugin to an Azure Service Bus Queue. Ideally I need CRM to listen to a Topic (subscription) and perform an action on receive. I do not know if this is possible with CRM and cannot find a method of implementing it. I can read from a queue with the below; MessagingFactory factory = MessagingFactory.CreateFromConnectionString(QueueConnectionString); //Receiving a message MessageReceiver testQueueReceiver = factory.CreateMessageReceiver(QueueName);

Azure ServiceBus SAS key for a subscription

时光毁灭记忆、已成空白 提交于 2019-12-24 07:52:04
问题 I have the following architecture: 1 topic where a publisher publishes messages and 3 subscriptions. All messages are dispatched in the 3 subscriptions thanks to a "1=1" rule. The 3 subscriptions are created to provide the message published to 3 different apps. I have a SAS key for the publisher with the "Write" permission on the topic. I now need to create 3 SAS keys with "listen" permission for the 3 apps but I saw that I can't associate a key with a subscription, only with a topic or at

Connecting to Azure ServiceBus Queue

老子叫甜甜 提交于 2019-12-24 03:31:24
问题 I am developing my first Azure implementation, I have set up my azure account and i used NuGet to install The proper DLL's and configs to my application. when i set my WCF client to point to the Service Bus Queue and run the method i get this exception: Microsoft.ServiceBus.ServerErrorException at Microsoft.ServiceBus.RelayedSocketInitiator.Connect(Uri uri, TimeSpan timeout) at Microsoft.ServiceBus.ConnectivityModeConnectionInitiator.Connect(Uri uri, TimeSpan timeout) at Microsoft.ServiceBus

What's the equivalent of NamespaceManager.GetQueue.MessageCount in the new NET Standard Microsoft.Azure.ServiceBus?

旧街凉风 提交于 2019-12-24 02:45:21
问题 What's the equivalent of NamespaceManager in the new NET Standard Microsoft.Azure.ServiceBus? I've used WindowsAzure.ServiceBus to do things like count messages in a queue ... var namespaceManager = NamespaceManager.CreateFromConnectionString(SbConnectionString); var count = namespaceManager.GetQueue(queueName).MessageCount; Moving over to the new Microsoft.Azure.ServiceBus .NET Standard library, but whilst it's got classes like QueueClient and TopicClient, it's not got any NamespaceManager

Why can't EventData.GetBytes() be called before sending?

╄→гoц情女王★ 提交于 2019-12-24 02:18:32
问题 I'm working with Azure Event Hubs and initially when sending data to try and calculate batch size I had code similar to the below that would call EventData.GetBytes EventHubClient client;//initialized before the relevant code EventData curr = new EventData(data); //Setting a partition key, and other operations. long itemLength = curr.GetBytes().LongLength; client.SendAsync(curr); Unfortunately I would receive an exception in the SDK code. The message body cannot be read multiple times. To

Azure Function V2 Service Bus Message Deferral

跟風遠走 提交于 2019-12-23 19:24:55
问题 I am attempting to convert my v1 function to a v2 function, but I cannot find a replacement for deferring a message. In V1 of Azure Functions it was a method on the BrokeredMesage called .DeferAsync() . In V2 there is no longer a BrokeredMessage but just a Microsoft.Azure.ServiceBus.Message and this does not contain the method of .DeferAsync() . According to the docs: The API is BrokeredMessage.Defer or BrokeredMessage.DeferAsync in the .NET Framework client, MessageReceiver.DeferAsync in the

Where do I obtain IssuerName and IssuerKey in Azure

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 14:52:51
问题 I am following this tutorial: It mentions that I should get the IssuerName and IssuerKey from the properties of my ServiceBus. There are no properties called IssuerName and IssuerKey when using VS2012 Server Explorer to examine my ServiceBus. When I use the online Azure management console and I click on Connection Information I only get a Connection string not the expected IssuerName and IssuerKey. Where are these values? I am on the free trial, does that matter? This is what I see. http:/

Where do I obtain IssuerName and IssuerKey in Azure

醉酒当歌 提交于 2019-12-23 14:52:07
问题 I am following this tutorial: It mentions that I should get the IssuerName and IssuerKey from the properties of my ServiceBus. There are no properties called IssuerName and IssuerKey when using VS2012 Server Explorer to examine my ServiceBus. When I use the online Azure management console and I click on Connection Information I only get a Connection string not the expected IssuerName and IssuerKey. Where are these values? I am on the free trial, does that matter? This is what I see. http:/

Azure Service Bus Subscriber Deadletter

纵然是瞬间 提交于 2019-12-23 12:19:54
问题 I've looked everywhere for information on this but can't seem to find what i'm looking for. I've got an azure topic, with one subscription. The handler for the subscription failed some messages, they've been put on the deadletter queue. I can access the messages but i'm at a loss for how to restore them. I don't want to create a copy of the message and send it to the topic. I specifically want to move it to the subscription queue it came from. Is there any way to do this? 回答1: I don't know if