Ioc introduction

of 11
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information Report
Category:

Technology

Published:

Views: 0 | Pages: 11

Extension: PDF | Download: 0

Share
Description
1. Autofac(IoC) 2. What’s IoC and DI 3. Ioc—Inversion of Control ã Control reversal is a design concept that transfers control of an object to a third-party…
Transcript
  • 1. Autofac(IoC)
  • 2. What’s IoC and DI
  • 3. Ioc—Inversion of Control • Control reversal is a design concept that transfers control of an object to a third-party container or DI container.
  • 4. DI—Dependency Injection • Injecting a dependent object into a passive receiving object • The module recommendations in the system depend on abstraction, If know too much detail (implementation), that will cause strong coupling between modules
  • 5. Autofac is a Ioc Container There are two concepts in Autofac. • IoC(Inversion of Control) • Container for managing objects
  • 6. Following four step to use Autofac
  • 7. Using Autofac Container There are three commonly used injection way from Autofac. 1. Constructor injection 2. Property injection 3. Method injection
  • 8. constructor injection
  • 9. Property injection
  • 10. Method injection
  • 11. Autofac API文件 :https://autofaccn.readthedocs.io/zh/latest/ Sample:https://github.com/isdaniel/IOC_Sample Blog :https://dotblogs.com.tw/daniel/2019/04/14/235135
  • We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks
    SAVE OUR EARTH

    We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

    More details...

    Sign Now!

    We are very appreciated for your Prompt Action!

    x