Welcome to Windows Communication Foundation (WCF)
Top Tasks :

WCF Team Bloggers

Attribute Driven Transactions

How are transactions controlled by decorating attributes on service methods? There are three important transaction-related attributes that can be supplied through operation behaviors on the service implementation. By setting the TransactionScopeRequired setting to true, all of the code in the service operation implementation runs inside of a TransactionScope. Without a transaction scope, the other attributes described here aren't very interesting. The TransactionAutoComplete setting controls whether the transaction automatically completes at the end of the service operation. The transaction will only be completed if the operation was successful and didn't throw an exception. An exception causes the transaction to be aborted. The TransactionFlowOption setting controls whether the transaction scope is a new transaction or is a transaction that comes from the caller. There are three options to distinguish the case where the caller might provide a transaction from the case where the caller must provide a transaction. Next time: Number of Connections for Secure Conversation Read More...
Published Wednesday, August 29, 2007 8:00 AM by Nicholas Allen's Indigo Blog

Comments

No Comments
Anonymous comments are disabled

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us