//- @PostNewComment -// public static String PostNewComment(String blogEntryGuid, String text, String author, String email, String website, DateTime dateTime, String emailBodyTemplate, String emailSubject) { using (CommentClient commentClient = new CommentClient(MinimaConfiguration.ActiveCommentServiceEndpoint)) { commentClient.ClientCredentials.UserName.UserName = MinimaConfiguration.DefaultServiceUserName; commentClient.ClientCredentials.UserName.Password = MinimaConfiguration.DefaultServicePassword; //+ return(commentClient.PostNewComment(blogEntryGuid, text, author, email, website, dateTime, emailBodyTemplate, emailSubject)); } }
//- @PostNewComment -// public static String PostNewComment(String blogEntryGuid, String text, String author, String email, String website, DateTime dateTime, String emailBodyTemplate, String emailSubject) { 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.PostNewComment(blogEntryGuid, text, author, email, website, dateTime, emailBodyTemplate, emailSubject)); } }