How to use Windsor IoC in ASP.net Core 2

前端 未结 4 1085
甜味超标
甜味超标 2021-01-31 19:00

How can I use Castle Windsor as an IOC instead of the default .net core IOC container?

I have built a service resolver that depends on WindsorContainer to r

4条回答
  •  失恋的感觉
    2021-01-31 19:43

    I wanted to add that answer Yahya Hussein offers works for me, however I had to adjust my scope to LifestyleCustome() on each dependency I registered.

    This may be second nature to some but it took me a minute to figure out.

提交回复
热议问题