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.
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.