I am new to WCF, so please point me to the right direction.
I created 2 WCF serivces, each one uses a difference database connection in
the back end.
Now from the client application, I need to keep two methods call to the
service in one transaction.
using (TransactionSco pe scope = new TransactionScop e())
{
using (Proxy1 proxy = new Proxy1())
{
proxy.Method1() ;
}
using (Proxy2 proxy = new Proxy2())
{
proxy.Method2() ;
}
scope.Complete( );
}
Above code does not work. If there is exception in Method2, Method1 still
commit.
What will be the right way to make transcation across multiple WCF services?
Thanks
I created 2 WCF serivces, each one uses a difference database connection in
the back end.
Now from the client application, I need to keep two methods call to the
service in one transaction.
using (TransactionSco pe scope = new TransactionScop e())
{
using (Proxy1 proxy = new Proxy1())
{
proxy.Method1() ;
}
using (Proxy2 proxy = new Proxy2())
{
proxy.Method2() ;
}
scope.Complete( );
}
Above code does not work. If there is exception in Method2, Method1 still
commit.
What will be the right way to make transcation across multiple WCF services?
Thanks
Comment