Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Messages directly go into Deadletter queue without processing

$
0
0

I have encountered a strange error where messages directly get into dead letter queue without even processing. The QueueClient.Send() method directly inserts queue messages into dead letter queue.  Is this glitch?

However, I am inserting messages into  queue in a parallel.Foreach loop.

 Parallel.ForEach(msgs,

                    message =>
                    {
                        var jmsg = new BrokeredMessage(JsonConvert.SerializeObject(message), new DataContractSerializer(typeof(string)));                   
                        queue.Send(jmsg);
                    });





Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>