Exemple #1
0
        private void FireTransactionFinishEvent(TransactionResult result)
        {
            if (_eventMgr == null)
            {
                return;
            }
            DbTransactionFinishMessage message = new DbTransactionFinishMessage(result);

            _eventMgr.GetEvent <DbTransactionFinishEvent>().Publish(message);
        }
Exemple #2
0
 void OnDbTransactionFinished(DbTransactionFinishMessage message)
 {
     try
     {
         if (message.Result == TransactionResult.Commit)
         {
             foreach (RequestChangedMessage changedMessage in _requestChangeCashe)
             {
                 FireRequestChangedEvent(changedMessage);
             }
         }
     }
     finally
     {
         _requestChangeCashe.Clear();
     }
 }