Some gateway messages do not get sent when mixing convention and key addresses
Bus.SendToSites(new[] { "http://localhost:25899/SiteA/", "SiteB" }, new PriceUpdated
{
ProductId = 2,
NewPrice = 100.0,
ValidFrom = DateTime.Today
});
Message is delivered to SiteB only
Problem's in GatewaySender.OnTransportMessageReceived(). CloneAndSendLocal() is called only once
Changing
var destinationSites = GetDestinationSitesFor(messageToDispatch);
to
var destinationSites = GetDestinationSitesFor(messageToDispatch).ToList();
fixes the problem but seems like a hack.
Not sure what the underlying issue is.
CloneAndSendLocal() overwrites the header of the original TransportMessage. There's some comment in the code about cloning the TransportMessage. Appears to make sense.
This is already fixed in v4 by the .ToList() call here
@johnsimons milestone should be 4.0??
Yep, updated