Auto enlist to TransactionScope

Feb 20, 2012 at 9:58 AM

I would be nice for the TxF file operations to automatically enlist to ambient TransactionScope transactions and not having to pass the scope as a parameter.

I have no idea how difficult implementing this would be.

Feb 20, 2012 at 8:18 PM
Edited Feb 20, 2012 at 8:25 PM


if i understand.

in this version of library TransactionScope is not necessary to pass  as parameter.

sorry but the document is not correct and I correct.

 

tnx

p

Feb 20, 2012 at 9:52 PM

Looking at your File class the TransactionScope parameter does not seem to be optional.

Feb 21, 2012 at 8:22 AM

Hi 

I think that you are wrong. Is necessary pass only parameter Transaction.

 

bye

p

Feb 23, 2012 at 9:52 AM

Yes, I was wrong: I had not realized that you created a new  version.


Now TxF does now auto enlist to the TransactionScope just fine.
I updated my blog post sample: Using Transactional NTFS (TxF) with SQL Server in .NET

Thank you for sharing this nice wrapper! I always wanted to have TxF in my .NET tool bag, but shied away from the intrinsics of using the unmanaged API.

--

Peter

Feb 23, 2012 at 10:06 AM

thank you ;)

 

p