This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Dependency injection
Alexanderius edited this page Jun 30, 2019
·
4 revisions
Dependency injection is used by default using Simplify.DI IOC container for all classes in Simplify.Web including user's 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 before
app.UseSimplifyWeb();
call. - When using
UseSimplifyWebWithoutRegistrations
orUseSimplifyWebNonTerminalWithoutRegistrations
internalSimplify.Web
types and user controllers/views types will not be registered inSimplify.DI
container. This allows us to control IOC registrations. To manually registerSimplify.DI
and controller/views types please useBootstrapperFactory.CreateBootstrapper().Register();
method.
Please refer to Simplify.DI for registration details.
- Getting Started
- Main Simplify.Web principles
- Simplify.Web controllers
- Simplify.Web views
- Simplify.Web templates
- Simplify.Web configuration
- Templates variables
- Static content
- Template factory
- Data collector
- String table
- File reader
- Web context
- Environment
- Language manager
- Redirector
- HTML