Beispiel #1
0
        /// <summary>
        /// Stops the application and closes the MQ Server connection
        /// </summary>
        public void StopServer()
        {
            try
            {
                if (Logger.IsInfoEnabled)
                {
                    Logger.Info("Closing MQ Server connection", _type.FullName, "StopServer");
                }

                // Disconnect MQ Server
                _mqServer.Disconnect();

                // Stop incoming message processing
                _messageProcessor.StopProcessing();
            }
            catch (Exception exception)
            {
                Logger.Error(exception, _type.FullName, "StopServer");
            }
        }