Пример #1
0
        public static BlogConnectionInfo Load(string filename)
        {
            var doc  = System.Xml.Linq.XDocument.Load(filename);
            var root = doc.Root;

            string blogurl       = root.GetElementString("blogurl");
            string blogId        = root.GetElementString("blogid");
            string metaWeblogUrl = root.GetElementString("metaweblog_url");
            string username      = root.GetElementString("username");
            string password      = root.GetElementString("password");

            var coninfo = new BlogConnectionInfo(blogurl, metaWeblogUrl, blogId, username, password);

            return(coninfo);
        }
Пример #2
0
 public Client(BlogConnectionInfo connectionInfo)
 {
     this.BlogConnectionInfo = connectionInfo;
 }