Example #1
0
        /// <summary>
        /// Stops the cache and network dispatchers.
        /// </summary>
        public void Dispose()
        {
            if (mSendDelivery != null)
            {
                mSendDelivery.Dispose();
            }

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

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

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

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

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