Method overloads with a CancellationToken parameter

Topics: ASP.NET Web API
Mar 31, 2013 at 7:32 PM
Right now some of TAP-based methods in System.Net.Http.Formatting library does not have overloads with a CancellationToken parameter. For instance next classes:
HttpContent
HttpContentExtensions
HttpContentMessageExtensions
HttpContentMultipartExtensions
which methods actually can be executed for a long time period. In addition if we're trying to create custom MediaTypeFormatter we unable to cancel ReadFromStreamAsync and WriteToStreamAsync methods.

I suppose that it will be great if such methods will contain an overloads with a CancellationToken parameter, which should be integrated into Web API message handling pipeline.

What do you think about it? Is it possible to do that in the v5 release?