You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project that is using Microsoft.Extensions.Http.Diagnostics has a direct dependency on version 3.0.0 of Microsoft.IO.RecyclableMemoryStream package and you try to use AddExtendedHttpClientLogging with body content logging enabled, it will fail with MissingMethodException: RecyclableMemoryStreamManager.GetStream().
I think we should take the leap and upgrade our dependency. It's the only way stuff will keep working in the long run, otherwise we'll fall behind forever.
Description
When a project that is using
Microsoft.Extensions.Http.Diagnostics
has a direct dependency on version 3.0.0 of Microsoft.IO.RecyclableMemoryStream package and you try to useAddExtendedHttpClientLogging
with body content logging enabled, it will fail withMissingMethodException: RecyclableMemoryStreamManager.GetStream()
.Reproduction Steps
<PackageReference Include="Microsoft.Extensions.Http.Diagnostics" Version="8.2.0" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.0" />
clientBuilder.AddExtendedHttpClientLogging(x => { x.LogBody = true; });
Expected behavior
HTTP request and response bodies are logged without any errors.
Actual behavior
Regression?
No response
Known Workarounds
Use 2.x versions of Microsoft.IO.RecyclableMemoryStream package:
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: