コード例 #1
0
        /// <summary>
        /// This function will clean up all the objects initialised before Mama.start is called.
        /// </summary>
        private void uninitializeMama()
        {
            if (m_source != null)
            {
                m_source.destroy();
                m_source = null;
            }

            if (m_dictionary != null)
            {
                m_dictionary.Dispose();
                m_dictionary = null;
            }

            if (m_queueGroup != null)
            {
                m_queueGroup.destroyWait();
                m_queueGroup = null;
            }

            if (m_transport != null)
            {
                m_transport.destroy();
                m_transport = null;
            }

            Mama.close();
        }
コード例 #2
0
        private void unintializeMama()
        {
            // Destroy the queues wiating for them to shutdown
            mamaQueueGroup.destroyWait();

            // Destroy the dictionary
            mamaDictionary.Dispose();

            // Destroy the transport
            mamaTransport.destroy();

            // Close Mama
            Mama.close();
        }