In regular class, I need to read following from the HttpContext
:
Controller and action name
Action's attribute (I could get that through
HttpActionContext.ActionDescriptor.GetCustomAttributes<type>()
but here I don't haveHttpActionContext
- I only haveHttpContext
)Read argument (like
actionContext.ActionArguments["paramName"]
, but again - I only have aHttpContext
)
It's not an action filter and not a controller class. But, I can access HttpContext
.
actionContext.ActionArguments["paramName"]
. – Scalariform