예제 #1
0
        public static ClientOption 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 ClientOption(blogurl, metaWeblogUrl, blogId, username, password);

            return(coninfo);
        }
예제 #2
0
 public Client(ClientOption connectionInfo)
 {
     clientOption = connectionInfo;
 }