Welcome to MSDN Blogs Sign in | Join | Help

ChrisForster.com

The Online Home of Chris Forster
WCF Transaction Flows

When you wish to flow transactions between a client and a WCF Service there are three key tasks to be considered:

 

1)      The binding that you select (which is set on be both the client and service side), should be transaction aware. Within the configuration file you should also set the transaction flow attribute to true.

 

2)      For each of the services operational contracts, the transaction flow option should also be specified, either 'NotAllowed', 'Allowed' or 'Mandatory'.

 

3)      You must specifically mark the service methods that you wish to be transactional. This is set as an 'Operation Behaviour' attribute called 'Transaction Scope Required', and this should be set to true.

 

There is a great article with full details at:  http://msdn.microsoft.com/msdnmag/issues/07/05/Foundations/default.aspx

 

Chris Forster

Posted: Wednesday, April 02, 2008 1:29 PM by chrisforster

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker