azureservicebus

Azure, SubscriptionClient.OnMessage, and Sessions

笑着哭i 提交于 2019-12-11 10:52:10
问题 Does the Azure Service Bus Subscription client support the ability to use OnMessage Action when the subscription requires a session? I have a subscription, called "TestSubscription". It requires a sessionId and contains multipart data that is tied together by a SessionId. if (!namespaceManager.SubscriptionExists("TestTopic", "Export")) { var testRule = new RuleDescription { Filter = new SqlFilter(@"(Action='Export')"), Name = "Export" }; var subDesc = new SubscriptionDescription(

Azure ServiceBus: Client.Receive() returns null for messages > 64 KB

若如初见. 提交于 2019-12-11 10:36:11
问题 I'm using a BrokeredMessage containing a Stream with a serialized object. According to the documentation the stream is part of the body not the header which is restricted to 64 KB. The overall message with about 67 KB is well below the limit of 256 KB for the message-size of ServiceBus queues. I'm able to send a message and it shows up in the queue with the correct message-size. After issuing the Receive -command the packet is removed from the queue and the counter is decremented accordingly.

Unknown xml serialization content/namespace from Service bus brokered message

大城市里の小女人 提交于 2019-12-11 09:23:00
问题 Hi i was wondering why i get a special namespace in my brokered message content from my service bus when i fetch the message from the topic. and how do i remove it? i have my xml, and when i (in my Azure function) try to retrieve the message from the service bus i get this on top of everything or better said before my root node: @string3http://schemas.microsoft.com/2003/10/Serialization/�� <rootNode>...</rootNode> when i retrieve the brokered message from my servicebus in my azure function i

Adding messages to IAsyncCollector Topic output with a session ID

狂风中的少年 提交于 2019-12-11 08:02:57
问题 Is it currently possible to push messages to an IAsyncCollector Topic output from Azure functions and also set a session ID? My topics really on FIFO ordering and so we had to setup sessions. Because of this we had imagined just setting up a Guid to be the unique session id. I know how I would push messages to my topic through this output but of course that errors out since we aren't setting the session Id explicitly. Is it possible to set this somewhere in the code as we send it off to the

Azure ServiceBus: Can not receive messages from queue

醉酒当歌 提交于 2019-12-11 07:27:57
问题 I'm working with this code for receiving messages from a queue: function startReceiver(){ serviceBusService.getQueue(configurations.queueForRequest, function(err, queue){ if(!err){ var length = queue.CountDetails['d2p1:ActiveMessageCount'];//get count of active messages if(length > 0) { serviceBusService.receiveQueueMessage(configurations.queueForRequest, {isPeekLock:true}, function(error, lockedMessage){ HandleMessage(error, lockedMessage) }); return; //get out from this method } } else{

MassTransit AzureServiceBus generated queues

江枫思渺然 提交于 2019-12-11 06:37:46
问题 I have a working configuration for a MT setup that is hosted in an Azure Service Fabric solution. I have an API that sends messages and a stateless app that reads them. Inside the stateless app I tell it to consume messages of type TestMessage with the following: container.Register(Classes.FromThisAssembly().BasedOn<IConsumer>()); var busControl = Bus.Factory.CreateUsingAzureServiceBus(cfg => { var h = cfg.Host(new Uri("sb://xxxxx.servicebus.windows.net"), host => { host.OperationTimeout =

Azure functions get service bus brokeredMessage with nodejs

守給你的承諾、 提交于 2019-12-11 06:32:09
问题 Is there a way to retrieve the service bus brokered message from a javascript azure function. At this time there's only a context that containing an invocationId, but not all properties like brokeredProperties or customPropeties. Thanks 回答1: There currently is no way to do this from node functions. You'd have to use C# and specify a BrokeredMessage as your parameter type, in which case you'd be given the entire message to handle yourself. There is an issue filed to expose more details for

Using Windows Azure Service Bus be used from an Azure Web Site?

不羁岁月 提交于 2019-12-11 06:32:04
问题 This guide to using Service Bus says the first step is to create a Service Namespace. I don't see how to do this in the portal for Azure Web Sites. The UI doesn't match the instructions given. I'm wondering if these instructions were written for Web Roles and don't work for Web Sites. Is there another way to do this from a Web Site? 回答1: When viewing the new Windows Azure portal, move your mouse over the word "Preview" in the topmost navigation bar. A dialog should appear. When it does, click

Azure Service Bus - PeekBatchAsync returning less messages than expected

天涯浪子 提交于 2019-12-11 06:28:40
问题 In an Azure Service Bus Topic I have a subscription with more than 1000 messages. These messages are consumed by a worker role. For monitoring purposes, I want to peek first 10 messages, to see what kind of messages are waiting to be processed. To accomplish that task I create a subscriptionclient and I call method PeekBatchAsync . The strange behavior is that sometimes PeekBatchAsync returns less than 10 messages (i.e. 2 or 4 messages). Code Example : Dim subscriptionClient As

BrokeredMessage send and Message consumer in Azure Function v2

和自甴很熟 提交于 2019-12-11 06:19:58
问题 I have mock azure web jobs, which periodically push BrokeredMessage to the service bus topic, like this public void Simulate( [TimerTrigger("0 */30 * * * *", RunOnStartup = true)] TimerInfo timerInfo, [ServiceBus("%topic%")] out BrokeredMessage message) { message = new BrokeredMessage( new AwesomeContract() { }); } In azure function V2, I am trying to consume it using Message class. public static void Integrate( [ServiceBusTrigger( "%topic%", "%subscribtion%", Connection =