Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractPlatformTransactionManager.RegisterAfterCompletionWithExistingTransaction Method

Register the given list of transaction synchronizations with the existing transaction.

[Visual Basic]
Protected Overridable Sub RegisterAfterCompletionWithExistingTransaction( _
   ByVal transaction As Object, _
   ByVal synchronizations As IList _
)
[C#]
protected virtual void RegisterAfterCompletionWithExistingTransaction(
   object transaction,
   IList synchronizations
);

Parameters

transaction
The transaction transaction object returned by
DoGetTransaction
.
synchronizations
The lList of TransactionSynchronization objects.

Remarks

Invoked when the control of the Spring transaction manager and thus all Spring transaction synchronizations end, without the transaction being completed yet. This is for example the case when participating in an existing System.Transactions or EnterpriseServices transaction invoked via their APIs.

The default implementation simply invokes the

AfterCompletion
methods immediately, passing in TransactionSynchronizationStatus.Unknown. This is the best we can do if there's no chance to determine the actual outcome of the outer transaction.

Exceptions

Exception TypeCondition
TransactionExceptionIn case of errors

See Also

AbstractPlatformTransactionManager Class | Spring.Transaction.Support Namespace | InvokeAfterCompletion | AfterCompletion | Unknown