Using Unity Application Block – from basics to generics

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)

Part 4: Constructor and Property or Setter Injection (code here)

Part 5: Arrays (code here)

Part 6: Generics (code here)

Hope this helps someone (and this is the smallest blog I’ve posted till now).

Published Wednesday, May 05, 2010 11:44 PM by nmarun
Filed under: , ,

Comments

# Twitter Trackbacks for Using Unity Application Block ??? from basics to generics - IBloggable - implemented [asp.net] on Topsy.com

Pingback from  Twitter Trackbacks for                 Using Unity Application Block ??? from basics to generics - IBloggable - implemented         [asp.net]        on Topsy.com

# re: Using Unity Application Block – from basics to generics

Thursday, May 06, 2010 12:46 PM by Avi

Great thanks!

# re: Using Unity Application Block – from basics to generics

Friday, May 07, 2010 1:27 AM by nmarun

You're welcome Avi.

Arun

# Цикл статей о Unity Application Block

Friday, May 07, 2010 12:57 PM by progg.ru

Thank you for submitting this cool story - Trackback from progg.ru

# re: Using Unity Application Block – from basics to generics

Thursday, May 13, 2010 9:25 AM by Sameera

Hi,

Great series so far! :)

I was looking for a way to do the following, and couldn't find a useful post on how to. I was wondering whether you could help.

e.g. I have class A that implements interface IA. A has method Create() which returns an object of interface IB. What I want is when I ask Unity for IB, is for it to go and resolve IA (which I would have already registered as singleton), and call Create to build IB. I think this is supported but, can't seem to find a good enough doc on how to.

Thanks

# re: Using Unity Application Block – from basics to generics

Thursday, May 13, 2010 12:22 PM by nmarun

Sameera,

That's an interesting situation you have there. I'll try and have a look at this, but in the mean time please try the Unity documentation here:

unity.codeplex.com/.../18855

and MSDN site:

msdn.microsoft.com/.../ff647347.aspx

Arun

Leave a Comment

(required) 
(required) 
(optional)
(required)