May 2018
Intermediate to advanced
334 pages
7h 25m
English
The Run method adds a delegate to the request pipeline in the same way as the Use method, but this method terminates the request pipeline. Look at the following screenshot for the signature of this method:

Look at the following code:
public void Configure(IApplicationBuilder app, ILoggerFactory logger){ logger.AddConsole(); //add more stuff that does not responses client async Task RequestDelegate(HttpContext context) { await context.Response.WriteAsync("This ends the request or short circuits request."); } app.Run(RequestDelegate);}
In the preceding code, I tried to show that Run terminates the request pipeline. Here, I used a local ...