Esempio n. 1
0
        /// <summary>
        /// Close Connection.
        /// </summary>
        public void Close()
        {
            // Try to call the last "Goodbye"
            try
            {
                if (channel != null)
                {
                    channel.Goodbye();
                }
            }
            catch (Exception) { }

            if (OnClose != null)
            {
                OnClose(this);
            }
        }