Ejemplo n.º 1
0
 public List <Post> GetRecentPosts(Int32 postCount = 5)
 {
     try {
         return(new List <Post>(metaWeblogProvider.GetRecentPosts(_blogId, _userName, Crypt.SecureStringToString(_password), postCount)));
     } catch (Exception e) {
         Utils.MsgBox("Error", e.Message);
     }
     return(null);
 }
Ejemplo n.º 2
0
 public Post[] GetRecentPosts(string blogid, string username, string password, int numberOfPosts)
 {
     _logger.LogInformation($"MetaWeblog:GetRecentPosts is called");
     return(_provider.GetRecentPosts(blogid, username, password, numberOfPosts));
 }
 public List <Post> GetRecentPosts(Int32 postCount)
 {
     return(new List <Post>(_metaWeblogProvider.GetRecentPosts(_blogId, _userName, Crypt.SecureStringToString(_password), postCount)));
 }