Applications can use the ITransactionOutcomeEvents interface to receive an asynchronous notice of a transaction's outcome. The application implements the methods in the ITransactionOutcomeEvents interface and registers the interface with the connection point mechanism. When MS DTC determines the outcome of a transaction, it calls the appropriate method in the ITransactionOutcomeEvents interface to inform the application of the outcome.
The ITransactionOutcomeEvents interface has the following methods.
| Method | Description |
|---|---|
| ITransactionOutcomeEvents ::Committed |
Raised for committed transactions. |
| ITransactionOutcomeEvents ::Aborted |
Raised for aborted transactions. |
| ITransactionOutcomeEvents ::HeuristicDecision |
Raised when one of the participants in the transaction makes an heuristic decision to commit or abort the transaction. Heuristic decisions are not supported in the current release. |
| ITransactionOutcomeEvents ::InDoubt |
Raised when the application calls either Commit or Abort and then loses communication with the commit coordinator before completion of phase one of the two-phase commit protocol. |
To use transaction outcome events, follow these stepsYou must repeat steps 2 through 9 for each transaction for which you require transaction outcome notification.
For more information about: