public virtual void Dispose() { if (disposed) { return; } disposed = true; Logger.Information("Disposing"); sendReceiveSemaphore.DisposeSafe(); stream.DisposeSafe(); Disconnected(this, EventArgs.Empty); Disconnected = null; }
public void Dispose() { Logger.Information("Disposing"); Close(); semaphore.DisposeSafe(); }