예제 #1
0
 //- @GetBlogEntryTypeList -//
 public static List <BlogEntryType> GetBlogEntryTypeList(String blogGuid, List <String> guidList)
 {
     using (BlogClient blogClient = new BlogClient(BlogSection.GetConfigSection().Service.Endpoint.Blog))
     {
         blogClient.ClientCredentials.UserName.UserName = BlogSection.GetConfigSection().Service.Authentication.DefaultUserName;
         blogClient.ClientCredentials.UserName.Password = BlogSection.GetConfigSection().Service.Authentication.DefaultPassword;
         //+
         return(blogClient.GetBlogEntryTypeList(blogGuid, guidList));
     }
 }
예제 #2
0
 //- @GetBlogEntryTypeList -//
 internal static List <BlogEntryType> GetBlogEntryTypeList(String blogGuid, List <String> guidList)
 {
     using (BlogClient blogClient = new BlogClient(MinimaConfiguration.ActiveBlogServiceEndpoint))
     {
         blogClient.ClientCredentials.UserName.UserName = MinimaConfiguration.DefaultServiceUserName;
         blogClient.ClientCredentials.UserName.Password = MinimaConfiguration.DefaultServicePassword;
         //+
         return(blogClient.GetBlogEntryTypeList(blogGuid, guidList));
     }
 }