1
0
mirror of synced 2024-11-22 09:13:51 +00:00

Bug fix ReplyTo werkte niet op static queues

This commit is contained in:
Menno van Lavieren 2017-07-21 14:14:19 +02:00
parent 50bcd26d40
commit cf53a1e6b1
3 changed files with 9 additions and 3 deletions

View File

@ -47,7 +47,7 @@ namespace Tapeti.Config
}
public interface IDynamicQueueBinding : IBinding
public interface IBuildBinding : IBinding
{
void SetQueueName(string queueName);
}

View File

@ -83,11 +83,17 @@ namespace Tapeti.Connection
channel.QueueBind(dynamicQueue.QueueName, exchange, routingKey);
}
(binding as IDynamicQueueBinding)?.SetQueueName(dynamicQueue.QueueName);
(binding as IBuildBinding)?.SetQueueName(dynamicQueue.QueueName);
}
}
else
{
channel.QueueDeclarePassive(queue.Name);
foreach (var binding in queue.Bindings)
{
(binding as IBuildBinding)?.SetQueueName(queue.Name);
}
}
}).Unwrap();
}

View File

@ -392,7 +392,7 @@ namespace Tapeti
}
protected class Binding : IDynamicQueueBinding
protected class Binding : IBuildBinding
{
public Type Controller { get; set; }
public MethodInfo Method { get; set; }