Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: MediaTypeFormatter's ReadFromStreamAsync fails when tracing is on [1395]

$
0
0
I have implemented custom formatter which overrides both ReadFromStreamAsync and WriteToStreamAsync overloads taking in Cancellation token.

When tracing is _not_ enabled, the above read and write methods get called and I get the results as expected.

But when tracing is enabled, I get the following exception:
"The media type formatter of type 'PlainTextFormatter' does not support reading because it does not implement the ReadFromStreamAsync method"

When tracing is enabled, the MediaTypeFormatterTracer calls into the ReadFromStreamAsync overload _not_ taking in the cancellation token resulting in the above exception.

__Attached__ a standalone katana selfhost repro.


Comments: Verified.

Viewing all articles
Browse latest Browse all 7215

Trending Articles