Example #1
0
        /// <summary>
        /// clear up publication
        /// </summary>
        private void ClearPublication()
        {
            if (level1 != null)
            {
                // disconnect handler - do this first so as not to receive Close event
                level1.PublicationResponse -= level1_PublicationResponse;

                // remove level1 object - automatically unsubscribes
                level1.Dispose();
                level1 = null;
            }
        }