Beispiel #1
0
 private void CloseMessageDispatcher()
 {
     try
     {
         if (!_singleThreaded)
         {
             _messageDispatcher.Close();
         }
     }
     catch (Exception e)
     {
         Exceptions4.CatchAllExceptDb4oException(e);
     }
     try
     {
         if (!_singleThreaded)
         {
             _asynchronousMessageProcessor.StopProcessing();
         }
     }
     catch (Exception e)
     {
         Exceptions4.CatchAllExceptDb4oException(e);
     }
 }
Beispiel #2
0
 protected override void Close2()
 {
     if ((!_singleThreaded) && (_messageDispatcher == null || !_messageDispatcher.IsMessageDispatcherAlive
                                    ()))
     {
         StopHeartBeat();
         ShutdownObjectContainer();
         return;
     }
     try
     {
         Commit1(_transaction);
     }
     catch (Exception e)
     {
         Exceptions4.CatchAllExceptDb4oException(e);
     }
     try
     {
         Write(Msg.Close);
     }
     catch (Exception e)
     {
         Exceptions4.CatchAllExceptDb4oException(e);
     }
     ShutDownCommunicationRessources();
     try
     {
         _socket.Close();
     }
     catch (Exception e)
     {
         Exceptions4.CatchAllExceptDb4oException(e);
     }
     ShutdownObjectContainer();
 }