Browse by Tags

All Tags » Unity (RSS)

Top 10 posts of 2010 by nmarun

I quote one of my professors when I say: “We Share – We Improve”. It is through blogging that I’ve learned quite a bit. The ‘R&D’ done to learn and perfect a technology and the comments by other experts adds towards skill-set building. Below are some...

Using Unity Application Block – from basics to generics by nmarun

I just wanted to have one place where I list all the six Unity blogs I’ve written. Part 1 : The very basics – Begin using Unity ( code here ) Part 2 : Registering other types and resolving them ( code here ) Part 3 : Lifetime Management ( code here )...
Filed under: , ,

Using Unity – Part 6 by nmarun

This is the last of the ‘Unity’ series and I’ll be talking about generics here. If you’ve been following the previous articles, you must have noticed that I’m just adding more and more ‘Product’ classes to the project. I’ll change that trend in this blog...
Filed under: , ,

Using Unity – Part 5 by nmarun

In the previous article of the series, I talked about constructor and property (setter) injection. I wanted to write about how to work with arrays and generics in Unity in this blog, after seeing how lengthy this one got, I’ve decided to write about generics...
Filed under: , ,

Using Unity – Part 4 by nmarun

In this part, I’ll be discussing about constructor and property or setter injection. I’ve created a new class – Product3: 1: public class Product3 : IProduct 2: { 3: public string Name { get; set; } 4: [Dependency] 5: public IDistributor Distributor ...
Filed under: , ,

Using Unity – Part 3 by nmarun

The previous blog was about registering and invoking different types dynamically. In this one I’d like to show how Unity manages/disposes the instances – say hello to Lifetime Managers. When a type gets registered, either through the config file or when...
Filed under: , ,

Using Unity – Part 2 by nmarun

In the first part of this series, we created a simple project and learned how to implement IoC pattern using Unity. In this one, I’ll show how you can instantiate other types that implement our IProduct interface. One place where this one would want to...
Filed under: , ,

Using Unity – Part 1 by nmarun

I have been going through implementing some IoC pattern using Unity and so I decided to share my learnings (I know that’s not an English word, but you get the point). Ok, so I have an ASP.net project named ProductWeb and a class library called ProductModel...
Filed under: , ,
More Posts