Custom IExceptionFilter on minimal api endpoint

71 Views Asked by At
public class MyExceptionFilter : IExceptionFilter
{
    public void OnException(ExceptionContext context)
    {
       ...
    }
}

how can I register this filter on a specific net 7 minimal API endpoint?

0

There are 0 best solutions below