Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ public async Task InitializeAsync()
.AddTenant("one", "vh1")
.AddTenant("two", "vh2")
.AddTenant("three", "vh3");

// Really just to manually test https://github.com/JasperFx/wolverine/issues/1658
opts.ListenToRabbitQueue("Queue1", conf =>
{
conf.BindExchange("Exchange1");
conf.BindExchange("Exchange2");
});

// Listen for multiples
opts.ListenToRabbitQueue("multi_response");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public RabbitMqBinding BindExchange(string exchangeName, string? bindingKey = nu

var existing = _bindings.FirstOrDefault(x => x.ExchangeName == exchangeName && x.BindingKey == bindingKey);
if (existing != null) return existing;

// Just to make sure that the exchange exists so resource setup
// works correctly
_parent.Exchanges.FillDefault(exchangeName);

var binding = new RabbitMqBinding(exchangeName, this, bindingKey);
if (arguments is not null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ protected override IEnumerable<RabbitMqEndpoint> endpoints()
}

foreach (var queue in Queues) yield return queue;


}

protected override RabbitMqEndpoint findEndpointByUri(Uri uri)
Expand Down
Loading