Hey man, I have been using fast endpoints as well, I am facing issues with adding pre processors, I have a global and a endpoint level preprocessor, global preprocessor (to validate headers) sends a response if header validation fails, but the request it is not stopping there, it still executes other pre processors as well before returning the response, I want it to be stop the execution. Could you help me with this?
Yea I ran into that as well. That is just how it works, you need to check if the response already started like this. if(ctx.HttpContext.Response.HasStarted) return; The pink box explains it fast-endpoints.com/docs/pre-post-processors#short-circuiting-execution
i love this video
Great content
Gracias saludos desde Chile....
Nice Video from Nigeria...
Nice Comment from germany 🤙
@@MircoBenthien It's nice using with VSCode
Hey man, I have been using fast endpoints as well, I am facing issues with adding pre processors, I have a global and a endpoint level preprocessor, global preprocessor (to validate headers) sends a response if header validation fails, but the request it is not stopping there, it still executes other pre processors as well before returning the response, I want it to be stop the execution. Could you help me with this?
Yea I ran into that as well. That is just how it works, you need to check if the response already started like this.
if(ctx.HttpContext.Response.HasStarted) return;
The pink box explains it fast-endpoints.com/docs/pre-post-processors#short-circuiting-execution
Is it saas application?