Пример #1
0
        void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                try
                {
                    _scheduler.Stop(60.Seconds());
                    _fiber.Shutdown(60.Seconds());

                    _bus.Dispose();
                    _bus = null;
                }
                catch (Exception ex)
                {
                    string            message = "Error in shutting down the TimeoutService: " + ex.Message;
                    ShutDownException exp     = new ShutDownException(message, ex);
                    _log.Error(message, exp);
                    throw exp;
                }
            }

            _disposed = true;
        }
 public void Dispose()
 {
     try
     {
         //does this own the bus?
         _bus.Dispose();
         _bus = null;
     }
     catch (Exception ex)
     {
         string            message = "Error in shutting down the SubscriptionService: " + ex.Message;
         ShutDownException exp     = new ShutDownException(message, ex);
         _log.Error(message, exp);
         throw exp;
     }
 }
Пример #3
0
        public void Dispose()
        {
            try
            {
                _scheduler.Dispose();
                _queue.Disable();

                _bus.Dispose();
                _bus = null;
            }
            catch (Exception ex)
            {
                string            message = "Error in shutting down the TimeoutService: " + ex.Message;
                ShutDownException exp     = new ShutDownException(message, ex);
                _log.Error(message, exp);
                throw exp;
            }
        }
Пример #4
0
        void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            if (disposing)
            {
                try
                {
                    _bus.Dispose();
                    _bus = null;
                }
                catch (Exception ex)
                {
                    string message = "Error in shutting down the SubscriptionService: " + ex.Message;
                    var    exp     = new ShutDownException(message, ex);
                    _log.Error(message, exp);
                    throw exp;
                }
            }

            _disposed = true;
        }