You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a Filter which could Log useful parts of request body and response. I have seen that ResultExecutingContext has Result object which includes ProblemDetails. However on a ResultFilter it is not possible to read the payload values from ResultExecutingContext. Deserializing context.HttpContext.Request.Body may have performance impacts.
What is the approved way of achieving this? Why ActionArguments are not available in ResultExecutingContext?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am working on a Filter which could Log useful parts of request body and response. I have seen that
ResultExecutingContext
has Result object which includesProblemDetails
. However on aResultFilter
it is not possible to read the payload values from ResultExecutingContext. Deserializingcontext.HttpContext.Request.Body
may have performance impacts.What is the approved way of achieving this? Why
ActionArguments
are not available inResultExecutingContext
?Beta Was this translation helpful? Give feedback.
All reactions