//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: //ORIGINAL LINE: public void addTransactionListener(final org.camunda.bpm.engine.impl.cfg.TransactionState transactionState, final org.camunda.bpm.engine.impl.cfg.TransactionListener transactionListener) public virtual void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener) { if (transactionState.Equals(TransactionState.COMMITTING)) { TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapterAnonymousInnerClass2(this, transactionListener)); } else if (transactionState.Equals(TransactionState.COMMITTED)) { TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapterAnonymousInnerClass3(this, transactionListener)); } else if (transactionState.Equals(TransactionState.ROLLINGBACK)) { TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapterAnonymousInnerClass4(this, transactionListener)); } else if (transactionState.Equals(TransactionState.ROLLED_BACK)) { TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapterAnonymousInnerClass5(this, transactionListener)); } }
public SpringTransactionContext(PlatformTransactionManager transactionManager, CommandContext commandContext) { this.transactionManager = transactionManager; this.commandContext = commandContext; TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronizationAdapterAnonymousInnerClass(this)); }