Exemple #1
0
        /// <summary>
        /// Disconnects the Appliance, releases the delegates and clears all Data
        /// </summary>
        /// <exception cref="MylapsException">
        /// Throws a MylapsException when the appliance is not created with this SDK instance.
        /// A brief error description is available from MylapsMessage member.
        /// </exception>
        /// <param name="mta">
        /// the appliance should be created by this SDK instance
        /// </param>
        public void ClearMTA(MTA mta)
        {
            if (!_mtaHandleWrappers.Contains(mta))
            {
                throw new MylapsException("Appliance " + mta.GetHostname() + " does not exist in this SDK");
            }

            _mtaHandleWrappers.Remove(mta);
            mta.Dispose();
        }