I\'m using MassTransit 3.2.4 and I\'m trying to add some header information for to my published messages but the code to set the header never seems to run. I\'m not sure why
Figured it out after much guessing. Just had the ConfigurePublish in the wrong place
var bus = Bus.Factory.CreateUsingRabbitMq(config =>
{
var host = config.Host(new Uri("rabbitmq://localhost/"), h => {});
config.ConfigurePublish(x => x.UseSendExecute(context =>
{
context.Headers.Set("HeaderKey", "HeaderValue");
}));
}