How the Next Delegate Works In ASP.NET Core Middleware

added by DotNetKicks
9/17/2018 2:09:15 PM

143 Views

How does next know how to call the next piece of middleware in the HTTP processing pipeline? I've been asked this question more than once when helping to write middleware components for ASP.NET Core. I thought it might be fun to answer the question by showing the code for an implementation of IApplicationBuilder.


0 comments