Stephan Ruhland

Results 4 comments of Stephan Ruhland

We would love to see the Filters and the FilterAttributes out of Preview! It targets a lot of interfaces and attributes: - IFunctionInvocationFilter - IFunctionExceptionFilter - IFunctionFilter - FunctionInvocationFilterAttribute -...

You could inject IHttpContextAccessor into your IFunctionFilter implementation. The property HttpContext should allow you to modify the response. Kind regards

1. Implement a custom exception, like for example an _AbortRequestException_. 2. Check your custom logic in the _IFunctionInvocationFilter_ or _IFunctionInvocationAttribute_ implementation and throw your abort exception. 3. In the implementation...

Yes, its marked as obsolete but i think they want to update and remove the obsolete attribute. It says only "preview" and not outdated code. Im dont know another "better"...