public StandardTransaction(TransactionDelegate onTransactionCommitted, TransactionDelegate onTransactionRolledback, TransactionErrorDelegate onTransactionFailed, TransactionMode transactionMode, IsolationMode isolationMode, bool distributedTransaction) : this(transactionMode, isolationMode, distributedTransaction) { this.onTransactionCommitted = onTransactionCommitted; this.onTransactionRolledback = onTransactionRolledback; this.onTransactionFailed = onTransactionFailed; }
//these invokers below are there to remove teh "Warning as Error" message. If you have a better way of removing this message, go for it. private void InvokeTransactionFailed(ITransaction transaction, TransactionException transactionError) { TransactionErrorDelegate Delegate = TransactionFailed; }