You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
471 B

namespace AspNetCoreApi.Middlewares
{
public class CustomMiddleware2
{
private readonly RequestDelegate _next;
public CustomMiddleware2(RequestDelegate next)
{
_next = next;
}
public async Task InvokeAsync(HttpContext context)
{
Console.WriteLine("Before CustomMiddleware2");
await _next(context);
Console.WriteLine("After CustomMiddleware2");
}
}
}