private void SetBrokerConfiguration(BrokerConfigurationElement config) { this.Broker = new BrokerConfiguration { BrokerId = config.Id, Host = GetIpAddress(config.Host), Port = config.Port }; }