/// <summary> /// Dispose will destroy the active socket and clean up all associated resources. /// </summary> /// <remarks> /// NOTE: This method will block to close the socket if it is open when called. Use <c>CloseAsync</c> instead /// wherever possible. /// </remarks> public void Dispose() { _adapter.Dispose(); }
public void Dispose() { _messageStore.Clear(); Socket.Dispose(); }