public void Dispose() { foreach (var consumer in _consumers) { consumer.Dispose(); } _outboundChannel?.Dispose(); _connection?.Dispose(); }
public void Dispose() { if (_model != null) { _model.Dispose(); _model = null; } if (_connection != null) { _connection.Dispose(); _connection = null; } }