servicebus

Service Bus 1.0 for Windows Server Transaction/Error Handling

假如想象 提交于 2019-12-04 17:13:42
I'm sure I'm not the first to say it, but there's a severe lack of documentation on the finer points of Service Bus 1.0 for Windows Server out there... I'm hoping some of the MS insiders can help clear a few things up... Do services utilizing queues/topics run in an implicit, ambient transaction? For instance consider the following code snippet: [ServiceBehavior] public class MySbService : IDoWork { [OperationBehavior] void DoSomeWork(WorkRequest request) { DoDatabaseWork(); DoMoreDatabaseWork(); } } In the above sample, without creating an explicit TransactionScope , would DoDatabaseWork() be

Generate Azure SAS Token on Android

白昼怎懂夜的黑 提交于 2019-12-04 16:03:41
问题 Trying to generate Azure SAS token in order to be able to use Service Bus REST Api. Found this link: http://blog.simontimms.com/2015/01/30/sending-message-to-azure-service-bus-using-rest/ How to achieve the same on Android? My Current attempt looks like this: private String generateSasToken(String uri, String keyName, String key){ String ret = ""; long tokenExpirationTime = (System.currentTimeMillis() / 1000) + (10 * 365 * 24 * 60 * 60); try { String stringToSign = new URL(uri).toString() + "

Microsoft Service Bus 1.0 unable to communicate with a server outside the client's domain

大城市里の小女人 提交于 2019-12-04 14:07:49
I have installed Service Bus 1.0 on a server joined to a Domain. From a client app running on a PC joined on the same domain, I am able to create queues, messages, etc. I use a connection string specifying credentials of a user on the same domain. Everything works. From a client app running on a PC outside the domain, nothing works. I was thinking it was related to the fact that it was not possible to use a user from the server domain if the client app was not on the same domain, so I also try to use a connection string containing a SharedSecretIssuer and a ShareSecretValue. With this approach

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

梦想与她 提交于 2019-12-04 09:54:53
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.CreateSharedSecretTokenProvider("MySubscriber","MyKey"); var serviceUri = ServiceBusEnvironment.CreateServiceUri(

ServiceBus RetryExponential Property Meanings

只愿长相守 提交于 2019-12-04 09:45:48
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); // the time between each attempt? var terminationTimeBuffer = TimeSpan.FromSeconds(90); // the

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

南笙酒味 提交于 2019-12-04 07:49:49
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 all the asynchrony... (looking at !dumpheap it's definitely a factor) Just a bit of description - I

Azure Service Bus Queue Count

假如想象 提交于 2019-12-04 03:28:19
问题 I have a service bus Q and from the Azure portal I can more or less see how many entries the service bus Q contains. How can I get this count using their management API? I have perused the docs but have been unsuccessful in finding an answer. 回答1: The QueueDescription has a property MessageCount: MSDN, Announcement (skip down to Message Count Details) This will allow access via .NET code The Management API Documentation also shows this exposed: MSDN This will allow access via the Rest API The

SqlFilter on Azure ServiceBus Topic subscription not filtering

女生的网名这么多〃 提交于 2019-12-03 21:41:55
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 Guid. The subscriber side looks like this: // ti is a class that contains a Topic, Subscription and a bool

Send message directly to Subscription

删除回忆录丶 提交于 2019-12-03 17:41:13
问题 Is it possible to send a message directly to a Subscription queue? Scenario: A message failed, dropped onto the deadletter, the message has been picked up manually using defer, cloned and needs to be sent to the queue it was first deadlettered on, but NOT the topic. Can I send a message directly to a subscriber? I've considered creating a separate retry queue per subscriber, where the handling service will also receive messages from but i'd rather not do this. 回答1: this is a similar question

Microsoft BizTalk Server vs Azure AppFabric Service Bus…?

天大地大妈咪最大 提交于 2019-12-03 16:29:38
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...? The BizTalk and AppFabric Service Bus teams at Microsoft are actually tightly collaborating and we (I work there) are integrating BizTalk's capabilities with AppFabric and Service Bus over