Windows Azure class which models the messages exchanged by applications that communicate through queues and topics.
Questions tagged [brokeredmessage]
49 questions
24
votes
5 answers
Using Azure Service Bus in local
I am working with Azure Service Bus Topics and Subscriptions. It's being used to send control messages across the application. The message listeners (subscribers) are running in a worker role and they are picking up the messages and processing the…

Pratik Bhattacharya
- 3,596
- 2
- 32
- 60
8
votes
1 answer
Why does BrokeredMessage.RenewLock() only renew the lock for a few seconds?
I've got a BrokeredMessageContext class which uses a Timer to periodically check and renew the lock on a BrokeredMessage instance in case the process that handles this message runs for longer than expected. It renews the lock by calling the…

Øyvind
- 1,600
- 1
- 14
- 33
6
votes
1 answer
C# Service Bus multiple listeners all receive the same message ( BrokeredMessage)
I used to use RabbitMQ as a messaging platform and I never had any issues with it - unfortunately, we've recently moved our infrastructure over to Azure and they don't provide RabbitMQ servers so I thought about trying out the Service Bus…

TheWalkingPanda
- 183
- 3
- 9
5
votes
1 answer
Azure Service Bus queue message handling
So I have an azure function acting as a queue trigger that calls an internally hosted API.
There doesn't seem to be a definitive answer online on how to handle a message that could not be processed due to issues other than being poisonous.
An…

jjharrison
- 841
- 4
- 19
- 33
5
votes
4 answers
BrokeredMessage disposed
I have a trouble marking my BrokeredMessage as Complete.
Simple code that works like expected:
private void OnMessageArrived(BrokeredMessage message)
{
var myObj= message.GetBody();
//do things with myObj
…

topolm
- 385
- 7
- 13
4
votes
1 answer
Azure Service Bus BrokeredMessage GetBody method throws SerializationException when reading data sent through Rest API
I am sending a csv file to an Azure Service Bus Queue from a .NET 3.5 based C# solution. Since the Service Bus nuget packages aren't available in .NET 3.5, I am using the Rest API.
byte[] file = File.ReadAllBytes(@"VehicleContacts.csv");
string url…

Yasir
- 1,595
- 5
- 23
- 42
4
votes
3 answers
BrokeredMessage Deseralization comes with unwanted String
Passing a brokered message over ServiceBus with out any custom DataContractSerializer[as Default XML Serializer Take Place].
var message = new BrokeredMessage(objMess.MessageBody);
Note: Mainly the message body is type of HTML Emails.
But When on…

joshua
- 2,371
- 2
- 29
- 58
3
votes
0 answers
Are .NET Standard Messages effectively incompatible with .NET Framework BrokeredMessages for general-purpose message sending?
One of the best places where I can point to that describes the situation quite well is this thread:
https://github.com/Azure/azure-service-bus-dotnet/issues/239
(I rarely see much getting resolved on that forum. That thread was closed a few years…

Panzercrisis
- 4,590
- 6
- 46
- 85
3
votes
2 answers
Sending 1000 brokered messages to the service bus using the SendBatchAsync method
I have an application wherein data is fetched from the SQL DB and sent to the service bus as brokered message. These are the steps:
Data fetched from the DB(in batches of 1000)
Each row of data converted into Brokered Message and added into a list.…

nitinvertigo
- 1,180
- 4
- 32
- 56
2
votes
1 answer
System.Runtime.Serialization.SerializationException while receiving message from Azure Service Bus
I have two separate applications one .Net Core other in .Net Framework. I have created a service bus sender in .Net core console application. It is sending message to service bus using latest Microsoft.Azure.Webjobs and…

Madhur Maurya
- 1,016
- 4
- 19
- 42
2
votes
1 answer
Microsoft Azure Service Bus Message completed
In .NET Framework Microsoft.ServiceBus.Messaging had a class used to receive messages from Service Bus, BrokeredMessage. However, in .NET Standard 2.0, in order to receive messages from a Service Bus, class Message is used, from…

Robert
- 57
- 3
- 10
2
votes
2 answers
Consuming Azure Queue message in Java using BrokeredMessage message . getBody() retruns some header information, How to get rid of it?
I am trying to receive Azure Queue Message from Java. I am able to receive message using BrokeredMessage in java. (I am novice to java).
My problem is message.getBody() is returning some header information as well (Not just the message as I…

OnSearchForEternity
- 21
- 1
2
votes
1 answer
Is it a good practice to re-create a Topic Client before sending a message to Azure Topic
I am using Microsoft.Azure.ServiceBus, Version=2.0.0.0 assembly to connect to Azure Topics. The code is below
public void SendMessage(Message brokeredMessage)
{
var topicClient = new TopicClient(_configuration.ConnectionString, topicName,…

Pratik Bhattacharya
- 3,596
- 2
- 32
- 60
2
votes
3 answers
Fake delivery and receipt of a BrokeredMessage Azure ServiceBus
I have created an instance of a BrokeredMessage and want to test my code around it's deliverycount versus a queue's max delivery count. I don't want to standup a real queue to send and receive the message on, but the deliverycount property is not…

Teknos
- 411
- 1
- 7
- 20
2
votes
1 answer
Azure Service Bus load balancing uneven
Setup
I have a model of a distributed system in which there is a producer(P), a consumer(C) and 1, 2, 3, ... n workers(Wn). All of these components are communicating via the Microsoft Azure Service Bus(B). Inside the bus, there is a topic(T) and a…

H. Larsson
- 31
- 3