public static async Task<Bitmap> GetUserProfilePicture(MyContact contact) {
   Bitmap bitmap = null;
   var users = await _adClient
                             .DirectoryObjects.OfType<Microsoft.Office365.ActiveDirectory.IUser>()
                             .Where(i => i.Mail == contact.Email)
                             .ExecuteAsync();
   foreach (var user in users.CurrentPage) {
     if (user != null && user.ThumbnailPhoto != null) {
       using (var stream = (await user.ThumbnailPhoto.DownloadAsync()).Stream) {
         bitmap = await BitmapFactory.DecodeStreamAsync(stream);
         return bitmap;
       }
     }
   }
   return bitmap;
 }
        public static async Task <Bitmap> GetUserProfilePicture(MyContact contact)
        {
            Bitmap bitmap = null;
            var    users  = await _adClient
                            .DirectoryObjects.OfType <Microsoft.Office365.ActiveDirectory.IUser>()
                            .Where(i => i.Mail == contact.Email)
                            .ExecuteAsync();

            foreach (var user in users.CurrentPage)
            {
                if (user != null && user.ThumbnailPhoto != null)
                {
                    using (var stream = (await user.ThumbnailPhoto.DownloadAsync()).Stream) {
                        bitmap = await BitmapFactory.DecodeStreamAsync(stream);

                        return(bitmap);
                    }
                }
            }
            return(bitmap);
        }