/// <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(); } }
/// <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); }