Open Closed

IOC: Why Caste and not Autofac/Unity? #103


0
biapar created

IOC: Why Caste and not Autofac/Unity? Is't possible to change?


3 Answer(s)
  • 0
    hikalkan created
    Support Team

    Hi,

    Castle Windsor, probably most mature and feature-rich DI library. No reason. You could ask same questionif I have chosen Autofac :)

    No, it's not planned to change it in near future since it's a fundamental library ABP depends on and not easy to change. But, in most cases you will not even think about DI container. ABP abstracts and automates it.

  • 0
    chanakaupendra created

    I am doing an application based on some existing business logic layer that had used autofac for DI. This is shared with some existing web apps and webapi services.
    Question is, whether autofac could work together with castle windsor ? or will I have to change existing to use castle ? Any suggestions on this please ?

  • 0
    hikalkan created
    Support Team

    Hi,

    Actually, your business layer should not be depend on any DI framework. If your code only use constructor and property injection, no problem, it will work for Windsor also. You may try to mix two frameworks but you may face with some problems (I don't know what they are but there is a potantial for problems).