IoC in MVP Asp.NET

Posted by Diego Dias on Stack Overflow See other posts from Stack Overflow or by Diego Dias
Published on 2010-04-30T14:40:37Z Indexed on 2010/04/30 14:47 UTC
Read the original article Hit count: 373

Hello, Guys.

I'm developing a application using MVP and I have a question about How inject my dependencis in my presenters class. Because my presente receve too an instance of the my view. I thought of create a viewbase and inside it I create my dependencies instances and inject it in my presenter instance. Could also have a HttpModule that intercept the calls to page and then I could inject my dependencies. I have some ideas but none I can inject my view in constructor only I can inject my view in mey presente by property. Someone have any ideas how do you do to inject my dependencies and my view in constructor of the presenter?

© Stack Overflow or respective owner

Related posts about mvp

Related posts about ASP.NET