Summary
In this chapter, we have discussed how to enable distributed transaction support for a WCF service. Now we can wrap sequential WCF service calls within one transaction scope and flow the distributed transaction into the WCF services. We can also update multiple databases on different computers all within one single distributed transaction.
The key points discussed in this chapter include:
Only certain bindings allow transactions to flow from the client to the WCF service using the
transactionFlow
attributeA WCF service operation contract can opt to participate in a propagated transaction using the
TransactionFlow
attributeA WCF service operation can specify its transaction behavior using the
TransactionScopeRequired
attributeMSDTC network access must be enabled for distributed transaction support among multiple computers
The firewall has to be configured to allow
msdtc.exe
for a distributed transaction to succeed