Questions tagged [controllercontext]

19 questions
0
votes
2 answers

ControllerContext vs HttpContext in Azure

I'm wondering if there are any implications between using ControllerContext as opposed to HttpContext, in an Azure setting. I've found that HttpContext is thread static, and I'm trying to find out if this is relevant in Azure or not. Assuming there…
Will
  • 585
  • 5
  • 20
0
votes
1 answer

Access Controller Context/ TempData from business objects

I am trying to build a session/tempdata provider that can be swapped. The default provider will work on top of asp.net mvc and it needed to access the .net mvc TempData from the business object class. I know the tempdata is available through the…
thanikkal
  • 3,326
  • 3
  • 27
  • 45
0
votes
1 answer

Get Current Controller name from outside a view and controller

I have tried using the ControllerContext object, but I don't know how to instantiate it. I'd like to remind you that I'm trying to get the controller name in a custom class outside a view or a controller. Thanks,
user560498
  • 537
  • 1
  • 16
  • 25
0
votes
2 answers

Getting request type from ActionResult

I am extending the ActionResult class. In the ExecuteResult method I want to check if the action was a GET or a POST however there doesn't seem property in the ControllerContext class that will let me do that. Does anybody know how to check the…
Stefan Bossbaly
  • 6,682
  • 9
  • 53
  • 82
1
2