Test Case 1: You're using Transient so they won't be same at all. You'll get
different instances
Test Case 2: Fails because when you ask IMyInterface, you'll get the
component registered first.
Test Case 3 is what you see from above reasons.



Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Sun, May 24, 2009 at 9:35 AM, vdhant <[email protected]> wrote:

>
>
>    var singleton = container.Resolve<IMyInterface>();
>    var singleton1 = container.Resolve<IMyInterface>();
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to