Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since IMiddleware exists, the "Write custom ASP.NET Core middleware" page should switch to using it. #34730

Open
AgentFire opened this issue Feb 13, 2025 · 1 comment
Assignees
Labels
aspnet-core/svc fundamentals/subsvc Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

@AgentFire
Copy link

AgentFire commented Feb 13, 2025

Description

This page describes methods of creation custom middlewares using the old, non-interfaced way, where you should either memorize or constantly check up with the docs of whether you've managed to guess the correct signature of both the InvokeAsync method AND the RequestDelegate parameter of the constructor.

The IMiddleware was there since .NET Core 2.0 and I believe the need to nudge the developers to start using it is long overdue.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/write?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/middleware/write.md

Document ID

cd22a135-4446-79f5-89db-b741bd44a720

Article author

@Rick-Anderson

Metadata

  • ID: 13e2d968-17a6-1a50-53cd-1d6b9ad0276d
  • PlatformId: f3890656-a128-4c55-0ed2-0882f2d05c6f
  • Service: aspnet-core
  • Sub-service: fundamentals

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aspnet-core/svc fundamentals/subsvc Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

No branches or pull requests

3 participants