示例#1
0
 //- @SaveImage -//
 public static String SaveImage(BlogImage blogImage, String blogGuid)
 {
     using (ImageClient imageClient = new ImageClient(MinimaConfiguration.ActiveImageServiceEndpoint))
     {
         imageClient.ClientCredentials.UserName.UserName = MinimaConfiguration.DefaultServiceUserName;
         imageClient.ClientCredentials.UserName.Password = MinimaConfiguration.DefaultServicePassword;
         //+
         return(imageClient.SaveImage(blogImage, blogGuid));
     }
 }
示例#2
0
 //- @SaveImage -//
 public static String SaveImage(BlogImage blogImage, String blogGuid)
 {
     using (ImageClient imageClient = new ImageClient(BlogSection.GetConfigSection().Service.Endpoint.Image))
     {
         imageClient.ClientCredentials.UserName.UserName = BlogSection.GetConfigSection().Service.Authentication.DefaultUserName;
         imageClient.ClientCredentials.UserName.Password = BlogSection.GetConfigSection().Service.Authentication.DefaultPassword;
         //+
         return(imageClient.SaveImage(blogImage, blogGuid));
     }
 }