Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Dependency injection

Alexanderius edited this page Feb 14, 2016 · 4 revisions

Dependency injection is used by default using Simplify.DI IOC container for all classes in AcspNet including controllers and views. Controllers and views registers automatically in IOC container when framework starts.

If your controllers or views uses constructor injection, then you should register that dependencies in Program.cs or Startup.cs file, before app.UseAcspNet(); call.

Please refer to Simplify.DI for registration details.

<< Previous page Next page >>

Clone this wiki locally