Open baywet opened 4 days ago
The core library only targets netstandard 2.0
My suggestion is to add additional targets and conditional compilation to better support high-throughput scenarios.
We should probably have a separate conversation about the netstandard2.0 target which gives us netfx + a bunch of end of life net core versions (when compared with lets say net6).
https://github.com/microsoft/OpenAPI.NET/blob/cb5bb2797a4a4aa61c96d4fd453ac5257474848d/src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs#L300
To pass it to GetStreamAsync. (conditional compilation on NET5 or higher).
All callers to this method should pass the value, and accept one.
This is important as if the action is being cancelled on a backend service, this will forward the cancellation to the HTTP request being made, saving important COGS in the process.