/// <summary> /// Releases unmanaged and — optionally — managed resources. /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> protected virtual void Dispose(bool disposing) { if (disposing) { StopListening(null); Connection.UnregisterConnectionsOfChannel(this); } }
/// <summary> /// Unregisters all running connections of the current <see cref="TcpExChannel"/> instance. /// </summary> public void Dispose() { Connection.UnregisterConnectionsOfChannel(this); }