问题 How to configure MassTransit to retry context.Publish() before failing, for example when RabbitMQ server is temporary unavailable? 回答1: The problem with retry in this context is that the only real reason a Publish call would fail is if the broker connection was lost (for any reason: network, etc.). In that case, the connection which was used to receive the message is also lost, meaning that another node connected to the broker may have already picked up the message. So a retry in this case