Comments on: Include File Operations in Your Transactions Today with IEnlistmentNotification https://www.chinhdo.com/20080825/transactional-file-manager/ Chinh's semi-random thoughts on software development, gadgets, and other things. Thu, 26 Nov 2020 00:45:48 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: .NET Transactional File Manager Migrated to GitHub – Chinh Do https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-811096 Sat, 21 Mar 2020 22:01:19 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-811096 […] I have migrated the .NET Transactional File Manager project to GitHub from CodePlex. I originally wrote about it in this blog post. […]

]]>
By: Bernd https://www.chinhdo.com/20080825/transactional-file-manager/#comment-757101 Thu, 14 Feb 2019 10:13:42 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-757101 @michael colella: I guess you forgot to rollback the first transaction 😉
@Chinh: great library, thanks a lot for sharing. Your code meets exactly my requirements (home-brewed updater program that involves binaries and a lot of database stuff).

]]>
By: Chinh Do https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-735242 Thu, 17 May 2018 17:56:50 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-735242 Hi Thang, Sorry for the slow response. Yes that is a current limitation. Since TxFileManager runs on a real/non-transactional file system, it’s not possible for it to provide different “images” or snapshots of the file system to different clients at the same time. Chinh

]]>
By: Thang Nguyen https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-732734 Thu, 08 Mar 2018 18:34:38 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-732734 Hi anh Chinh Do,

I have encountered an issue that if a file is created before a transaction completed, it is visible and other process can still pick it up. E.g.

Class 1: write file and add a product to database.
IFileManager fileMgr = new TxFileManager();
using (var scope = new TransactionScope())
{
fileMgr.WriteAllText(path, contents); // File is visible instantly here, right?
db.AddProduct(product);
scope.Complete();
}

Class 2: a poller runs as a background thread to pickup the file for other process in a period of time.
poller.PickUpTheFile(path);

A problem is, Class 2 should not pickup the file when the transaction is not completed. I guess TXFileManager should have saved the file in a temporary folder before complete a transaction, correct?

Thank you anh,
Thang Nguyen

]]>
By: asme bpvc ix https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-450729 Fri, 12 Dec 2014 08:47:25 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-450729 Goodd write-up. I absolutely appreciate this site. Thanks!

]]>
By: Chinh Do https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-440546 Wed, 27 Aug 2014 16:29:06 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-440546 Hi Pramod: That’s great. Thanks for your comment. Chinh

]]>
By: Pramod https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-440531 Wed, 27 Aug 2014 09:34:13 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-440531 works like a charm….really nice

]]>
By: Chinh Do https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-413193 Thu, 27 Mar 2014 12:05:38 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-413193 Hi: Sorry for the slow response… gmail tabs hid my notifications. To get source code, you can either do a Clone or you can browse the files here https://transactionalfilemgr.codeplex.com/SourceControl/latest.

Chinh

]]>
By: Me https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-387718 Fri, 21 Feb 2014 09:10:19 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-387718 I don’t see any source code in here:
https://transactionalfilemgr.codeplex.com/SourceControl/list/changesets
🙁

]]>
By: Chinh Do https://www.chinhdo.com/20080825/transactional-file-manager/comment-page-1/#comment-154488 Fri, 22 Jun 2012 12:53:40 +0000 https://www.chinhdo.com/20080825/transactional-file-manager/#comment-154488 Sunny:

That’s currently not supported by this framework. In theory, it can be done by implementing a separate transaction manager which is aware of the state of various transactions and can roll back incomplete transactions like the one in your example.

Chinh

]]>