-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
- Create the filter in
ForEvolve.OperationResults.AspNetCore(review this, maybe creating a standalone project would be best?) - Allow the configuration of
ExceptionTransformerthat could map specific exception type(s) to anIOperationResultallowing customization of the exception convention pipeline. This could be based on, use, or update the concepts ofIOperationResultStandardizer. - The
ExceptionTransformershould support returning any type, no justIOperationResult, making this compatible with any system (including, but not limited to, my oldDynamicInternalServerErrorprojcet). - Add the filter to the
AddForEvolveOperationResultFilters()extension method or create anAddForEvolveOperationResultApiFilters()method to differentiate API filters vs MVC filters (or both); TODO: review/rename these to be more generic and less "OperationResult-centric".
OperationResult-centric stuff could be part of another assembly, following an assembly structure similar to:
ForEvolve.ExceptionFilters.AbstractionForEvolve.ExceptionFilters.AspNetCore( orForEvolve.ExceptionFilters.AspNet)ForEvolve.ExceptionFilters.AspNetCore.OperationResultsForEvolve.ExceptionFilters.AspNetCore.DynamicInternalServerError(maybe?)ForEvolve.ExceptionFilters.MediatR(orForEvolve.ExceptionFilters.VerticalSlice)ForEvolve.ExceptionFilters.MediatR.OperationResultsForEvolve.ExceptionFilters.MediatR.DynamicInternalServerError(maybe?)- ...