POCO and Unity Application Block Part II

In my previous post I covered the configuration of the Unity Application Block for Constructor Injection without modifying the class being injected.  In this post I will cover Property Injection and how write API and XML configuration. The following code has a dependency on the ILogger class exposed through a public property in line 10 [...]

POCO and Unity Application Block Part I

Using Plain Old CLR Objects (POCO) with the Unity Application Block Plain old CLR objects is a term borrowed from Java (POJO) that refers to objects that are not entangled with framework specific code or dependencies.  For Example, when classes have multiple constructors you can add the [InjectionConstructor] Attribute to the constructor that you want [...]

POCO and Unity Application Block Part I

Using Plain Old CLR Objects (POCO) with the Unity Application Block Plain old CLR objects is a term borrowed from Java (POJO) that refers to objects that are not entangled with framework specific code or dependencies.  For Example, when classes have multiple constructors you can add the [InjectionConstructor] Attribute to the constructor that you want [...]

Presentation on the Unity Application Block at the Sarasota Users Group

I will be speaking about the Unity Application Block, Dependency Injection and Inversion of Control at the Sarasota .Net Users Group. Wed, September. 17, 2008 at 6:00pm – 8:00pm.   Location: Sarasota Community Foundation, 2635 Fruitville Rd., Sarasota, FL 34237 (just west of Tuttle on the north side of Fruitville). The Microsoft Unity Application Block is [...]

Unity Application Block Event Broker

The Unity Application Block IoC Container comes with a little know extension for creating loosely coupled events called the Simple Event Broker.  The Unity Event Broker supports multiple publishers and multiple subscribers to the same event name.  The decoupled model prevents subscribers from knowing about publishers and publishers from knowing about subscribers.     The [...]

Lazy Instantiation with Unity Application Block

Configuring the Unity Application Block for just-in-time Instantiation.  Out of the box, Unity does not provide a way to configure your dependencies so that they are resolved only if needed.  Lazy Instantiation would be desirable if your dependency is and required only under certain circumstances or you would like to delay object creation of a [...]