Пример #1
0
 //- @GetCommentList -//
 public static List <Comment> GetCommentList(String blogEntryGuid, Boolean showEveryComment)
 {
     using (CommentClient commentClient = new CommentClient(MinimaConfiguration.ActiveCommentServiceEndpoint))
     {
         commentClient.ClientCredentials.UserName.UserName = MinimaConfiguration.DefaultServiceUserName;
         commentClient.ClientCredentials.UserName.Password = MinimaConfiguration.DefaultServicePassword;
         //+
         return(commentClient.GetCommentList(blogEntryGuid, showEveryComment));
     }
 }
Пример #2
0
 //- @GetCommentList -//
 public static List <Comment> GetCommentList(String blogEntryGuid, Boolean showEveryComment)
 {
     using (CommentClient commentClient = new CommentClient(BlogSection.GetConfigSection().Service.Endpoint.Comment))
     {
         commentClient.ClientCredentials.UserName.UserName = BlogSection.GetConfigSection().Service.Authentication.DefaultUserName;
         commentClient.ClientCredentials.UserName.Password = BlogSection.GetConfigSection().Service.Authentication.DefaultPassword;
         //+
         return(commentClient.GetCommentList(blogEntryGuid, showEveryComment));
     }
 }