ASP.NET Core 3.0中HttpRequest.EnableRewind()的替代方法是什么? [英] What is the alternate of HttpRequest.EnableRewind() in ASP.NET Core 3.0?

查看:2225
本文介绍了ASP.NET Core 3.0中HttpRequest.EnableRewind()的替代方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

BufferingHelper.EnableRewind();

以上是ASP.NET Core 2.2中HttpRequest对象的扩展方法。 ASP.NET Core 3.0(至少具有此名称)中没有更多内容。我想知道它在ASP.NET Core 3.0中是替代的。我不确定

Above is an extension method for HttpRequest object in ASP.NET Core 2.2. It is no more there in ASP.NET Core 3.0 (atleast with this name). I want to know it's alternate in ASP.NET Core 3.0. I am not sure if

HttpRequestRewindExtensions.EnableBuffering();

是替代项。

推荐答案

的确是 HttpRequestRewindExtensions.EnableBuffering()。您可以在此处在内部仅调用 EnableRewind()

The alternate is HttpRequestRewindExtensions.EnableBuffering(), indeed. You can see here that internally it just calls EnableRewind().

这篇关于ASP.NET Core 3.0中HttpRequest.EnableRewind()的替代方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆