Hi!
Flickr.NET has been a godsend when fetching images from Flickr. However, I do not understand how I can cancel the download from Flickr.
C# Code:
Cheers!
Flickr.NET has been a godsend when fetching images from Flickr. However, I do not understand how I can cancel the download from Flickr.
C# Code:
var t = new TaskCompletionSource<FlickrResult<SizeCollection>>();
var flickr = new Flickr("XXXX", "XXXX");
flickr.PhotosGetSizesAsync(photoToken, s => t.TrySetResult(s));
FlickrResult<SizeCollection> flickrImages = await t.Task;
How do I add my Cancellation Token to this block of code to have it cancel the PhotosGetSizesAsync task when ctx.token is set to true?Cheers!