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 CustomMiddleware1
{
private readonly RequestDelegate _next;
public CustomMiddleware1(RequestDelegate next)
{
_next = next;
}
public async Task InvokeAsync(HttpContext context)
{
Console.WriteLine("Before CustomMiddleware1");
await _next(context);
Console.WriteLine("After CustomMiddleware1");
}
}
}