Explain BUILT-IN IOC CONTAINER.

 BUILT-IN IOC CONTAINER

• The built-in container is represented by IService Provider implementation that supports constructor injection by default. The types (classes) managed by built-in  IOC containers are called services.

There are basically two types of services in ASP.NET Core:

1. Framework Services: Services that are a part of ASP.NET Core framework such as Application Builder, I Hosting Environment, ILoggerFactory, etc. 

2. Application Services: The services (custom types or classes) which you as a programmer create for your application.

• In order to let the  IOC  container automatically inject our application services, we first need to register them with the  IOC  container.

• ASP.NET Core framework includes a built-in  IOC  container for automatic dependency injection. The built-in loC container is a simple yet effective container.

Comments

Popular posts from this blog

What are different steps used in JDBC? Write down a small program showing all steps.

Discuss classification or taxonomy of virtualization at different levels.

Pure Versus Partial EC