Bug fix ReplyTo werkte niet op static queues
This commit is contained in:
parent
abce6b9d84
commit
988c0a1709
@ -47,7 +47,7 @@ namespace Tapeti.Config
|
||||
}
|
||||
|
||||
|
||||
public interface IDynamicQueueBinding : IBinding
|
||||
public interface IBuildBinding : IBinding
|
||||
{
|
||||
void SetQueueName(string queueName);
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -392,7 +392,7 @@ namespace Tapeti
|
||||
}
|
||||
|
||||
|
||||
protected class Binding : IDynamicQueueBinding
|
||||
protected class Binding : IBuildBinding
|
||||
{
|
||||
public Type Controller { get; set; }
|
||||
public MethodInfo Method { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user