Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Difference between Configuration.IocManager.IocContainer and IocManager.IocContainer #7915


User avatar
0
OriAssurant created

Hi Abp Zero Support,

Our project is based on .Net Core 2 + Angular 8. I noticed in Preinitialize you're using Configuration.IocManager, but in Initialize, you're using IocManager directly. Just wonder what was the difference between these two IocManager? Is IocManager a singleton instance?

Thank you


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    They don't make a difference, you can use either one. : )

    You may use IocManager under the module, otherwise use dependency injection.

    see https://aspnetboilerplate.com/Pages/Documents/Dependency-Injection

  • User Avatar
    0
    OriAssurant created

    Thank you for the quick response!