84
BufferingHelper.EnableRewind();

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();

is the alternate.

Muhammad Fahad Nadeem
  • 1,120
  • 1
  • 9
  • 15

2 Answers2

129

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

Roman Marusyk
  • 23,328
  • 24
  • 73
  • 116
Narvalex
  • 1,824
  • 2
  • 18
  • 27
-1

EnableBuffering() internally calls EnableRewind(). We can see below definition of HttpRequestRewindExtensions class.

public static class HttpRequestRewindExtensions
{
    public static void EnableBuffering(this HttpRequest request)
    {
        BufferingHelper.EnableRewind(request);
    }
}
Ramil Aliyev 007
  • 4,437
  • 2
  • 31
  • 47
  • Welcome to Stack Overflow! Please don't post duplicate answers; as you can see, this same answer has already been posted [here](https://stackoverflow.com/a/58089658/16775594). See [answer] for more information on how to write good answers. I also recommend you take the [tour] for a basic intro to what Stack Overflow is. – Sylvester Kruin Apr 16 '23 at 19:01