Sitecore.Linqpad.Driver.SitecoreDriver.GetConnectionDescription C# (CSharp) Method

GetConnectionDescription() public method

public GetConnectionDescription ( IConnectionInfo cxInfo ) : string
cxInfo IConnectionInfo
return string
        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;
        }