示例#1
0
 //- @AuthorizeComment -//
 public static void AuthorizeComment(String commentGuid)
 {
     using (CommentClient commentClient = new CommentClient(MinimaConfiguration.ActiveCommentServiceEndpoint))
     {
         commentClient.ClientCredentials.UserName.UserName = MinimaConfiguration.DefaultServiceUserName;
         commentClient.ClientCredentials.UserName.Password = MinimaConfiguration.DefaultServicePassword;
         //+
         commentClient.AuthorizeComment(commentGuid);
     }
 }
示例#2
0
 //- @AuthorizeComment -//
 public static void AuthorizeComment(String commentGuid)
 {
     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;
         //+
         commentClient.AuthorizeComment(commentGuid);
     }
 }