Transactions in Azure Service Bus are a wide topic referring to many different entities, which you can work with in this service:
- Clients (QueueClient, TopicClient)
- Messages (by using operations like Complete, Defer, Abandon , and many more)
- Sessions (GetState/SetState)
As you can see, there are no receive operations listed; this is because there is an assumption that they are atomic by design.
You can refer to the following code snippet to get a better picture of what we are talking about in this section:
var message = receiver.Receive();using (scope = new ...