Dhruti90 / google-gdata1111

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

on BatchAsync, the AsyncOperationCompletedEventArgs does not contain the result feed #290

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using the version 3.0 .NET library (updated today)

What steps will reproduce the problem?
1. Send a BatchAsync request of any kind (I used delete/update)
2. Handle the AsyncOperationCompleted event of the service
3. See that the e.Feed is null

Please use labels and text to provide additional information.
It all boils down to the AsyncOperationCompletedEventArgs constructor, that 
gets the AsyncData, and tries to cast it to AsyncQueryData and AsyncSendData. 
In Delete/Insert/Update batch processing, the data is AsyncSendData, and so the 
feed's reference doesn't get copied into the args.

I put in a workaround where I just copy the feed regardless if its 
AsyncQueryData or AsyncSendData, so it works for me at the moment. I don't know 
what other implications this might have.

Original issue reported on code.google.com by ATGard...@gmail.com on 24 Nov 2009 at 9:43

GoogleCodeExporter commented 9 years ago
Fixed per your suggestion. My code was overly defensive.

Original comment by fman...@gmail.com on 24 Nov 2009 at 11:08

GoogleCodeExporter commented 9 years ago
Thanks for the swift response. Also for #289.

Original comment by ATGard...@gmail.com on 24 Nov 2009 at 11:46