public IMessageTopology Build(IEndpoint endpoint) { var messageTopology = new MessageTopology(); messageTopology.PublishExchange = messageTopology.DefineExchange(endpoint.MessageType, ExchangeType.Topic); return messageTopology; } }