private void FireTransactionFinishEvent(TransactionResult result) { if (_eventMgr == null) { return; } DbTransactionFinishMessage message = new DbTransactionFinishMessage(result); _eventMgr.GetEvent <DbTransactionFinishEvent>().Publish(message); }
void OnDbTransactionFinished(DbTransactionFinishMessage message) { try { if (message.Result == TransactionResult.Commit) { foreach (RequestChangedMessage changedMessage in _requestChangeCashe) { FireRequestChangedEvent(changedMessage); } } } finally { _requestChangeCashe.Clear(); } }