Aspnetcore.docs: A few small issues in the Middleware topic

Created on 2 Dec 2020  ·  1Comment  ·  Source: dotnet/AspNetCore.Docs

I noticed there's a few small issues here:

  • There's a code sample that looks like this:

    app.UseResponseCaching
    app.UseResponseCompression
    app.UseStaticFiles

    It doesn't invoke any of the methods.

  • There's another code sample that looks like this:

    public void Configure(IApplicationBuilder app)
    {
    // Static files aren't compressed by Static File Middleware.
    app.UseStaticFiles();

      app.UseResponseCompression();
    
      app.UseEndpoints(endpoints =>
      {
          endpoints.MapRazorPages();
      });
    

    }

    It doesn't include a call to UseRouting.

  • The line highlights for the UseWhen sample are off.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Source - Docs.ms doc-bug

Most helpful comment

@Rick-Anderson I can pick this one up tonight. Gimme a 👍 if that's OK.

>All comments

@Rick-Anderson I can pick this one up tonight. Gimme a 👍 if that's OK.

Was this page helpful?
0 / 5 - 0 ratings