views:

82

answers:

0

Hi there,

is there a way to inject an object into the session state automatically with Ninject? For example:

  1. I have a provider that gets me a list of objects.
  2. In my views I have something that reads state from session like <%=Session["MyKey"].Data%>
  3. Now I want to be able to inject the value of Session["MyKey"] with Ninject instead of manually programming the Session_Beging event and injecting it there.

Thanks for helping out!