Exemple #1
0
 public void GetImage(Guid imageId, Action <FullImage, Exception> callback)
 {
     try
     {
         using (ImageServiceClient client = new ImageServiceClient())
         {
             var item = client.GetImageById(imageId);
             callback(item, null);
             client.Close();
         }
     }
     catch (Exception ex)
     {
         callback(null, ex);
     }
 }
Exemple #2
0
 public void GetImage(Guid imageId, Action<FullImage, Exception> callback)
 {
     try
     {
         using (ImageServiceClient client = new ImageServiceClient())
         {
             var item = client.GetImageById(imageId);
             callback(item, null);
             client.Close();
         }
     }
     catch (Exception ex)
     {
         callback(null, ex);
     }
 }