public static RabbitMQModel GetRabbitMQModelByPath(string path) { if (string.IsNullOrEmpty(path)) { return(null); } var configurationSection = AppSetting.GetConfigurationSection(path); return(GetRabbitMQModel(configurationSection)); }