Esempio n. 1
0
        public void Close()
        {
            if (_infoService == null)
            {
                return;
            }

            ValidateUsedConnection();

            try
            {
                _infoService.Close();
            }
            catch (TimeoutException exception)
            {
                _infoService.Abort();
                _log.Error("Error closing exception.", exception);
            }
            catch (CommunicationException exception)
            {
                _infoService.Abort();
                _log.Error("Error closing exception.", exception);
            }

            _infoService = null;
        }