This is a followup to : MonoTouch: How to save a huge PDF downloaded from an URL incrementally?
I'm trying to follow the guidelines indicated by the Apple slides of the Newsstand presentation ("Building Newsstand Apps", Session 504):
http://adcdownload.apple.com//wwdc_2011/adc_on_itunes__wwdc11_sessions__pdf/504_building_newsstand_apps.pdf
Apple recommends the use of the NSURLConnection Delegate and NKAssetDownload for downloading and resuming the newsstand content, but I don't understand what C# code in MonoTouch is equivalent to the one in Obj-C showed in the slides.
The problem is how to download a huge PDF file from an URL in my MonoTouch iPhone/iPad newsstand app, a PDF that is often too big to fit in memory.
To execute the download incrementally as indicated in the slides, instead of appending all the downloaded data in NSData and at the very end of the download and store it to a file when I got all data, I need to execute the download asynchronously in a separate thread and append to a file each received chunk and free my memory.
At the same time I need to be certain that if the connection is dropped or the app crashes the download would resume automatically from the last chunk without corrupting the file.
What is the better way to handle this in MonoTouch, without risking to see my App rejected by Apple?
Thanks in advance!