Enabling distributed transaction support
In the previous sections, we verified that the WCF service currently does not support the distributed transactions irrespective of whether there are two sequential calls to the same service or two sequential calls to two different services, with one database or with two databases.
In the following sections, we will learn how to allow this WCF service to support distributed transactions. We will allow the WCF service to participate in the client transaction. From another point of view, we will learn how to propagate a client transaction across the service boundaries so that the client can include service operation calls on multiple services in the same distributed transaction.
Enabling transaction flow in service binding
The first thing that we need to pay attention to is the bindings. As we learned in Chapter 1, Implementing a Basic HelloWorld WCF Service, the three elements of a WCF service endpoint are the address, binding, and contract (WCF ABC)....