How to use Castle Windsor with ASP.Net web forms?

前端 未结 5 1542
悲哀的现实
悲哀的现实 2020-12-02 10:53

I am trying to wire up dependency injection with Windsor to standard asp.net web forms. I think I have achieved this using a HttpModule and a CustomAttribute (code shown bel

5条回答
  •  攒了一身酷
    2020-12-02 11:25

    Rather than doing it like this, you could also use a type resolver directly with something like:

    ILogger Logger = ResolveType.Of();
    

提交回复
热议问题