public override string GetConnectionDescription(IConnectionInfo cxInfo)
{
var settings = GetCxSettings(cxInfo);
var selectedType = settings.SearchResultType;
string description = null;
if (selectedType != null)
{
var type = selectedType.GetSelectedType();
if (type != null)
{
description = string.Format("{0} [{1}]", settings.ClientUrl, type.Name);
}
}
if (string.IsNullOrEmpty(description))
{
description = settings.ClientUrl;
}
return description;
}