示例#1
0
        protected string GetHostnameFromTabSvcYml()
        {
            BsonDocument tabSvcYml = GetTabSvcYml();

            if (tabSvcYml.Contains("pgsql") && tabSvcYml["pgsql"].AsBsonDocument.Contains("host"))
            {
                return(tabSvcYml.GetPath("pgsql.host").AsString);
            }
            else
            {
                return("(Unknown)");
            }
        }