I have a block of code like this (Container is unity container, SingletonDelegate is a delegate return new instance of type T)
public Singleton<T>(SingletonDelegate<T> singletonDelete)
if (Container.ResolveAll<T>().Count() == 0)
it works good in unity 1.1, but after i install the latest 1.2 version, ResolveAll() will always return 0 after any registeration.
I must add a instance name both in RegisterInstance<T> and Resolve<T>, so i don't know what has changed and it's very hard to understand the register and resolve logic here (spring.net seems to be much more easy, for no registeration will return
null in resolve, but unity just throw exception in Resolve<Interface> and return a new instance in Resolve<Class>)