Example #1
0
        /// <summary>
        /// Shuts down the client. Application life cycle end is tracked.
        /// </summary>
        internal static void ShutDown()
        {
            if (client != null)
            {
                client.ShutDown();
            }

            IDisposable disposable = client as IDisposable;

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