示例#1
0
        /// <summary>
        /// Releases all the managed resources
        /// </summary>
        public void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            if (_host.IsNotNull())
            {
                _host.Stop();
                _host.Dispose();
            }

            GC.SuppressFinalize(this);

            IsDisposed = true;
        }