Example #1
0
 /// <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();
 }
Example #2
0
 public void Dispose()
 {
     _messageStore.Clear();
     Socket.Dispose();
 }