private static void ParseSetting(string setting, ServiceBusConfig config)
		{
			var parts = setting.Split('=');
			if (parts.Length < 2)
			{
				return;
			}
			var settingName = parts[0].Trim().ToLowerInvariant();
			var settingValue  = setting.Substring(setting.IndexOf('=') + 1);
			switch (settingName)
			{
				case "endpoint" :
					config.EndpointAddress = settingValue;
					break;
				case "queuename":
					config.QueueName = settingValue;
					break;
				case "userid" :
					config.RabbitMqUserName = settingValue;
					break;
				case "password" :
					config.RabbitMqPassword = settingValue;
					break;
			}
		}
		public static ServiceBusConfig Parse(string connectionString)
		{
			if (string.IsNullOrWhiteSpace(connectionString)) return null;

			var config = new ServiceBusConfig();

			foreach (var setting in connectionString.Split(';'))
			{
				ParseSetting(setting, config);
			}

			return config;
		}