.net - Can I prevent WCF from rolling back the transaction when a fault is thrown? -
consider following wcf service participates in distributed transaction. normal behavior of wcf roll transaction if fault occurs. there way override behavior? service contract: [servicecontract] public interface itestservice { [operationcontract] [faultcontract(typeof(testservicefault))] void throwerror(); [operationcontract] void dosomething(); [operationcontract] void dosomethingelse(); } [datacontract] public class testservicefault{} service implementation: class testservice : itestservice { [operationbehavior(transactionscoperequired = true)] [transactionflow(transactionflowoption.mandatory)] public void throwerror() { throw new faultexception<testservicefault>(new testservicefault()); } [operationbehavior(transactionscoperequired = true)] [transactionflow(transactionflowoption.mandatory)] public void dosomething() { // // ... // } [operationbehavior(transactionscoper...