public void OnChannelClosed(object sender, EventArgs e) { if (channel != null) { channel.Closed -= OnChannelClosed; channel.Dispose(); channel = null; } Subscribe(); }
protected virtual void DisposeCore() { connection.Dispose(); }