NetMQ.Core.Reaper.Destroy C# (CSharp) Method

Destroy() public method

Release any contained resources - by destroying the poller and closing the mailbox.
public Destroy ( ) : void
return void
        public void Destroy()
        {
            m_poller.Destroy();
            m_mailbox.Close();
        }

Usage Example

Example #1
0
File: Ctx.cs Project: yeowgit/netmq
        /// <summary>
        /// Dump all of this object's resources
        /// by stopping and destroying all of it's threads, destroying the reaper, and closing the mailbox.
        /// </summary>
        private void Destroy()
        {
            foreach (IOThread it in m_ioThreads)
            {
                it.Stop();
            }

            foreach (IOThread it in m_ioThreads)
            {
                it.Destroy();
            }

            if (m_reaper != null)
            {
                m_reaper.Destroy();
            }

            m_termMailbox.Close();

            m_disposed = true;
        }
All Usage Examples Of NetMQ.Core.Reaper::Destroy