Overview

public void Configure(IApplicationBuilder app)
{
	app.Run(async context =>
	{
		await context.Response.WriteAsync("Hello, World!");
	});
}
public void Configure(IApplicationBuilder app)
{
	app.Use(async (context, next) =>
	{
		// Do work that doesn't write to the Response.
		await next.Invoke();
		// Do logging or other work that doesn't write to the Response.
	});

	app.Run(async context =>
	{
		await context.Response.WriteAsync("Hello from 2nd delegate.");
	});
}

Ordering