ASP.NET binding object to Request in asp.net mvc
Posted
by Alxandr
on Stack Overflow
See other posts from Stack Overflow
or by Alxandr
Published on 2010-03-15T05:53:43Z
Indexed on
2010/03/15
5:59 UTC
Read the original article
Hit count: 292
asp.net-mvc
|request
I've created a object that I'd like to have accessible from wherever the request-object is accessible, and to "die" with the request, more or less like how you always in a mvc-application has access to the RouteData-collection. Especially it's important that I have access to this object in the execution of action-filters. And also there need to be created a new object of my class whenever a new request is made to the page (the object needs to be request-safe, ie. only one request modifies that one object).
Any thoughts about how to achieve this?
© Stack Overflow or respective owner