You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 theRequestDelegate
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
Related Issues
The text was updated successfully, but these errors were encountered: