Yesterday we saw different methods that give us the ability to communicate with Service Bus Topics and all spin around the HTTP/S. Today we will reach a more sensible topic. How we can write a client and a server that at begging use Service Bus Queues and after a while be begin use Service Bus Topics. We want to achieve this with a minimal effort time. Also when the transition is done from queues to topics we want minimal changes in our code. I think that we already observed that this two services are very similar. The API are almost the same, not only this, but also the message that is send and received from the services has the same time, BrokeredMessages. Until now, on all examples we used QueueClient and TopicClient classes to communicate with queues and topics. This is very good; those are the basic classes that should be used for normal situation. But if we look in these two classes we will discover a powerful property named “InternalSender”. This class returns a “MessageSender” ...
DREAMER, CRAFTER, TECHNOLOGY ENTHUSIAST, SPEAKER, TRAINER, AZURE MVP, SOLVING HARD BUSINESS PROBLEMS WITH CUTTING-EDGE TECHNOLOGY