-
-
Notifications
You must be signed in to change notification settings - Fork 10
Dependency injection
Alexanderius edited this page Jun 7, 2024
·
3 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 registered automatically in IOC container when framework starts by passing true parameter to
UseSimplifyWeb
orUseSimplifyWebNonTerminal
methods or manually callingRegisterSimplifyWeb
onIDIRegistrator
interface of IOC container; - If your controllers or views uses constructor injection, then you should register that dependencies before web application starts or before manual call of IOC container
Verify
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
- Dynamic environment
- Language manager
- Redirector
- HTML