User Tools

Site Tools


notes:csharp:mvvm_light

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notes:csharp:mvvm_light [2017/04/19]
leszek [Messenger (Message Bus)]
notes:csharp:mvvm_light [2018/06/20] (current)
leszek [Simple IoC]
Line 84: Line 84:
 =====Simple IoC===== =====Simple IoC=====
  
 +  * An IoC container allows us to provide an interface and receive an instance of a class that implements the provided interface. It's up to the container to figure out where to get that instance and how to return it back. 
 +  * An IoC container can also accept an instance of a class and then return this instance when we ask about the corresponding class type.
 +  * We can configure our IoC container at startup by registering all concrete types and interface we need in our application. It is called a //​composition root//. Often, you may have a separate bootstraper project to handle that.
 +  ​
   * When a class is registered, no instances are created.   * When a class is registered, no instances are created.
   * Object creation is on demand when the //​GetInstance//​ method is called the first time.   * Object creation is on demand when the //​GetInstance//​ method is called the first time.
notes/csharp/mvvm_light.txt ยท Last modified: 2018/06/20 by leszek