Where should I perform action when implementing IEnlistmentNotification?
问题 I am trying to create a custom "resource manager" by implementing IEnlistmentNotification interface. This interface has following methods: Prepare() Commit() Rollback() InDoubt() While it's clear that rollback code should go in Rollback() method I am not sure in which method should I implement the code that performs the actual operation? Should it go in Prepare() or Commit() or maybe some other custom method in the class that will be called from outer code from inside of TransactionScope