【问题标题】:What is the alternate of HttpRequest.EnableRewind() in ASP.NET Core 3.0?ASP.NET Core 3.0 中 HttpRequest.EnableRewind() 的替代方法是什么?
【发布时间】:2019-12-15 20:41:55
【问题描述】:
BufferingHelper.EnableRewind();

以上是 ASP.NET Core 2.2 中 HttpRequest 对象的扩展方法。它在 ASP.NET Core 3.0 中不再存在(至少使用这个名称)。我想知道它在 ASP.NET Core 3.0 中的替代品。我不确定是否

HttpRequestRewindExtensions.EnableBuffering();

是替代品。

【问题讨论】:

标签: httprequest buffering alternate asp.net-core-3.0


【解决方案1】:

确实是HttpRequestRewindExtensions.EnableBuffering()。你可以看到here 在内部它只是调用了EnableRewind()

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-04-13
    • 1970-01-01
    • 2019-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-31
    • 1970-01-01
    相关资源
    最近更新 更多