More suggestions for ActionContextAccessor replacements #64010
Unanswered
stevendarby
asked this question in
General
Replies: 1 comment
-
|
i'm also interested to know the recommended ways to access ActionContext.ModelState |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I/ActionContextAccessoris being deprecated and the announcement mentions an alternative for getting endpoint metadata from theHttpContext(viaIHttpContextAccessor) instead: aspnet/Announcements#520 (@captainsafia)We use it in a few other ways and it's not clear how to replace these, could anyone provide any guidance please?
We inject
IUrlHelper, which we build fromActionContext:We also access
ActionContext.ModelStatefrom services. Can this be retrieved fromHttpContext?Beta Was this translation helpful? Give feedback.
All reactions