public async Task ExchangeUnbind(string source, string destination, string routingKey, IDictionary <string, object> arguments, bool waitConfirmation) { ThrowIfRecoveryInProcess(); await _channel.ExchangeUnbind(source, destination, routingKey, arguments, waitConfirmation).ConfigureAwait(false); var recovery = new ExchangeBindRecovery(source, destination, routingKey, arguments); lock (_boundExchanges) _boundExchanges.Remove(recovery); }
protected bool Equals(ExchangeBindRecovery other) { return(StringComparer.Ordinal.Equals(_source, other._source) && StringComparer.Ordinal.Equals(_destination, other._destination) && StringComparer.Ordinal.Equals(_routingKey, other._routingKey)); }