Buffer input stream for System.Web adapters#447
Conversation
e4939fd to
572030c
Compare
|
@davidfowl @Tratcher I haven't done much with endpoint metadata, but this looks like a good way to allow configurability per endpoint for System.Web compatibility. I'm assuming "last one wins" is a decent enough way to manage it and I don't need to deal with merging multiple layers of metadata (i.e. through the GetOrderedMetadata<> call). As always, feedback is appreciated! |
2a79604 to
868bd5a
Compare
868bd5a to
10599f0
Compare
Co-authored-by: David Fowler <davidfowl@gmail.com>
e19b8cc to
14ff346
Compare
…ware.cs Co-authored-by: David Fowler <davidfowl@gmail.com>
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
|
@Tratcher I had to put back the |
That might be because you're using IMiddleware, we don't usually use that. Here's the more common pattern: |
This sets up the input stream to be buffered and reads it all into memory to mimic the behavior of System.Web. This can be turned on per endpoint via the
SystemWebAdapterAttributemetadata entry.A WebApi endpoint has also been added to test similar behavior between the two frameworks that can be expanded as more features are brought online.