Browse by Tags
All Tags »
Unity Application Block »
IoC (
RSS)
Revisiting XML Configurations In Unity In the past I wrote a few tutorials about Unity application block . One of the things I wrote about was how to configure a Unity container using design time configuration. In this post I’m going to revisit that post and show you how the configurations changed (for the better) and are much more easier to work with in the current version of Unity (version 2). The Unity Configuration Section As in my previous post we will first start with a small example of Unity...
Using the ControllerActivator in MVC 3 In the previous post I showed how to use the DependencyResolver in order to bring Dependency Injection behavior to a MVC 3 application. In this post I’ll show you how you can use the ControllerActivator in order to activate controllers using your own behavior. The IControllerActivator In MVC 3 beta a new interface was introduced – the IControllerActivator . This interface is an injection point in order to create our own behavior in order to activate controllers...
Dependency Injection in MVC 3 Was Made Easier In the past I wrote a post that showed how to implement Dependency Injection using Unity in ASP.NET MVC framework . This post revisits that post and shows how you can do the same thing easily in MVC 3 . Pay attention that the supplied code is based on MVC 3 beta and may change in the future. The IDependencyResolver and DependencyResolver MVC 3 introduces a new interface – the IDependencyResolver . This interface enables service location by providing two...
Index Pages on My Blog Lately, I received an e-mail from a reader of my blog which included an advice to make an index for my post series. I took his advice and made 3 index pages for the following subjects: ADO.NET Data Services ADO.NET Entity Framework Unity Application Block These index pages will be updated frequently whenever a new tutorial post will be added. Also, I’m going to add more index pages in the future for more post series. Thanks Marcellus. Enjoy!
How To Use Unity Container In ASP.NET MVC Framework In the past I wrote the post How To Use Unity Container In ASP.NET . In this post I’m going to explain how we can use Unity IoC container in ASP.NET MVC Framework . Building The Container As in the previous post the first thing to do is to build the container itself. I’ll use the same method I used in the previous post in order to persist the Unity container ’s state during the application execution. The right place to put the Unity container is...
Dependency Injection From Theory to Practice With Unity Article Today my article, Dependency Injection From Theory to Practice With Unity , was published on the Hebrew MSDN site. The article describe what is dependency injection and then introduce the Unity application block . You can read the article here . You can read more Hebrew MSDN articles here . Enjoy.
Common Service Locator Library introduction Yesterday Glenn Block introduced a Common Service Locator library which is described as “a shared interface that applications and frameworks can reference in order to leverage IoC containers / service location mechanisms without taking hard dependencies”. The idea for the library is based on a post that Jeremy Miller wrote of having a shared interface across several IoC implementation. The benefit of such an interface is obvious - no dependency...
The post show some aspects of Unity application block injection API....
The post explain the use of Unity container hierarchies in to aspects - why and how to use them...
The post shows how to register generic types in the Unity configuration section and how to use them in code....
The post describe how to work with configuration files with the Unity application block...
In the post I show how to integrate Unity in ASP.NET web applications....
The post shows how to get started with the Unity application block by showing the basic Unity operations....
In the post I describe what is the Unity application block, why to use it and when to use it....