L
Lubomir
..NET 3.5, Vista Bussiness 64
Hi,
I am calling an WCF service (netNamedPipeBinding, a locally running service)
from Windows form application. During the connection to the service, I am
executing a method, that contains a transaction:
using (TransactionScope scope = new TransactionScope ( ))
{
try
{
doSomething1();
doSomething2();
doSomething3();
scope.Complete();
}
catch (Exception)
{
}
}
When error occures in doSomething2(), exception is caught and the execution
will leave the TransactionScope block.
The doSomething1() is not rolled back as expected. In doSomething1() I am
creating some files on HDD and I expected these files will be automatically
deleted if transaction is not completed.
What am I missing?
Thanks,
Lubomir
Hi,
I am calling an WCF service (netNamedPipeBinding, a locally running service)
from Windows form application. During the connection to the service, I am
executing a method, that contains a transaction:
using (TransactionScope scope = new TransactionScope ( ))
{
try
{
doSomething1();
doSomething2();
doSomething3();
scope.Complete();
}
catch (Exception)
{
}
}
When error occures in doSomething2(), exception is caught and the execution
will leave the TransactionScope block.
The doSomething1() is not rolled back as expected. In doSomething1() I am
creating some files on HDD and I expected these files will be automatically
deleted if transaction is not completed.
What am I missing?
Thanks,
Lubomir