Beispiel #1
0
        /// <summary>
        ///     Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            if (keepAlive != null)
            {
                keepAlive.Dispose();
            }

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

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

            if (connectionHandler != null)
            {
                connectionHandler.Dispose();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            if (keepAlive != null)
            {
                keepAlive.Dispose();
            }

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

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

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

            GC.SuppressFinalize(this);
        }