コード例 #1
0
        public void Close()
        {
            try
            {
                if (m_notificationsAddress != null)
                {
                    m_publisher.CloseConnection(m_notificationsAddress);
                }
            }
            catch (Exception excp)
            {
                logger.Warn("Exception closing notifications connection. " + excp.Message);
            }

            InStream.Close();
            OutStream.Close();
            ErrorStream.Close();
            HasClosed = true;
            //StopPolling = true;

            if (Closed != null)
            {
                Closed(this, new EventArgs());
            }
        }