servicebus

ServiceBus RetryExponential Property Meanings

空扰寡人 提交于 2019-12-06 05:11:43
问题 I'm having a hard time understanding the RetryExponential class that is used in conjunction with QueueClients (and I assume SubscriptionClients as well). The properties are listed here, but I don't think my interpretation of their descriptions is correct. Here's my interpretation... var minBackoff = TimeSpan.FromMinutes(5); // wait 5 minutes for the first attempt? var maxBackoff = TimeSpan.FromMinutes(15); // all attempts must be done within 15 mins? var deltaBackoff = TimeSpan.FromSeconds(30

Receiving message from Azure Topic yields null, topic has unread messages

走远了吗. 提交于 2019-12-06 04:34:23
问题 Yesterday I was able to repeatedly read messages from a subscription of an Azure Service Bus Topic that I created myself. Today, however, whilst using the same code as yesterday, all messages are null despite that the message count of the subscription is well above 0. Let me elaborate: Following the instruction on the MSDN site concerning how to read messages from subscription , I'm using the following to read messages from a subscription client: var tokenProvider = TokenProvider

Azure ServiceBus & async - To be, or not to be?

落花浮王杯 提交于 2019-12-06 03:29:31
问题 I'm running Service Bus on Azure, pumping about 10-100 messages per second . Recently I've switched to .net 4.5 and all excited refactored all the code to have 'async' and 'await ' at least twice in each line to make sure it's done 'properly' :) Now I'm wondering whether it's actually for better or for worse . If you could have a look at the code snippets and let me know what your thoughts are. I especially worried if the thread context switching is not giving me more grief than benefit, from

Service Bus 1.1 creating Queue with WindowsAzure.ServiceBus dll

大憨熊 提交于 2019-12-05 16:03:40
I am preparing to develop application that connects to Azure Service Bus. For development I want use Service Bus 1.1. I have installed localy Service Bus 1.1 and it works fine when I am connecting with package Service Bus.v1_1 ver. 1.0.5 . But as I want eventually work with Azure I prefer to use package WindowsAzure Service Bus which as I know sholud work with Service Bus 1.1. But when I want to execute: namespaceManager.QueueExists(queueName) with WindowsAzure.ServiceBus ver 3.1.2 package I receive: 'System.ArgumentException' .... The remote server returned an error: (400) Bad Request. The

Error configuring using Windows Service Bus (1.1) Configuration Wizard

萝らか妹 提交于 2019-12-05 09:22:48
I am trying to configure Windows Service Bus (1.1) using Service Bus Configuration Wizard. I am getting below error when I try to configure it. Can anybody tell me what is the problem. [Error] [5/9/2014 9:32:40 AM]: System.Management.Automation.CmdletInvocationException: Starting service Service Bus Gateway on machine USHP2-10-056A failed: Time out has expired and the operation has not been completed. ---> Microsoft.ServiceBus.Commands.Common.Exceptions.OperationFailedException: Starting service Service Bus Gateway on machine USHP2-10-056A failed: Time out has expired and the operation has not

Azure WebJob concurrency when using ServiceBusTrigger

旧时模样 提交于 2019-12-05 08:57:29
I have been using Azure Storage Queues to feed a WebJob, using the QueueTrigger attribute. I configure my QueueTrigger to dequeue a number of items for concurrent processing, like this: public static void Main() { JobHostConfiguration config = new JobHostConfiguration(); config.NameResolver = new QueueNameResolver(); config.Queues.NewBatchThreshold = 10; JobHost host = new JobHost(config); host.RunAndBlock(); } public static void ExecuteStorageQueueItem([QueueTrigger("%AzureQueueName%")] CloudQueueMessage message, TextWriter logger) { ProcessRequest(message.AsString, logger); } I would prefer

C# communication between processes

元气小坏坏 提交于 2019-12-05 07:07:36
I'm working with an application, and I am able to make C# scripts to run in this environment. I can import DLLs of any kind into this environment. My problem is that I'd like to enable communication between these scripts. As the environment is controlled and I have no access to the source code of the application, I'm at a loss as to how to do this. Things I've tried: File I/O: Just writing the messages that I would like each to read in .txt files and having the other read it. Problem is that I need this scripts to run quite quickly and that took up too much time. nServiceBus : I tried this,

Deserializing ServiceBus content in Azure Logic App

自闭症网瘾萝莉.ら 提交于 2019-12-05 06:57:38
I'm trying to read the content body of a message in an Azure Logic App, but I'm not having much success. I have seen a lot of suggestions which say that the body is base64 encoded, and suggest using the following to decode: @{json(base64ToString(triggerBody()?['ContentData']))} The base64ToString(...) part is decoding the content into a string correctly, but the string appears to contain a prefix with some extra serialization information at the start: @string3http://schemas.microsoft.com/2003/10/Serialization/�3{"Foo":"Bar"} There are also some extra characters in that string that are not

SqlFilter on Azure ServiceBus Topic subscription not filtering

。_饼干妹妹 提交于 2019-12-05 06:30:02
问题 I’ve got a WinRT app that I’m using the Windows Azure Toolkit for Windows 8 with. I’ve got a setup where I’d like clients subscribed to ignore messages posted to a ServiceBus Topic if they’re the originator or if the message is older than when their subscription started. In the Properties of my BrokeredMessage, I’ve added 2 items to cover these scenarios: message.Properties["Timestamp"] = DateTime.UtcNow.ToFileTime(); message.Properties["OriginatorId"] = clientId.ToString(); clientId is a

Microsoft BizTalk Server vs Azure AppFabric Service Bus…?

落花浮王杯 提交于 2019-12-05 01:42:37
问题 We all know that BizTalk is an commercial product from Microsoft for ESB (Enterprise Service Bus). What are other ready-made features which BizTalk supports over the AppFabric Service bus. Or in other words what does AppFabric Service Bus doesn't provide to the features of ESB ...? Is the term "Service Bus" misleading as far as the AppFabric Service Bus is concerned with respect to Enterprise Service Bus...? 回答1: The BizTalk and AppFabric Service Bus teams at Microsoft are actually tightly