You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to issue #124 Unity has issues with multiple registrations followed by a ResolveAll.
Expected
container.RegisterType<IFoo,FooA>();
container.RegisterType<IFoo,FooB>();// Return an instance of FooBvarfooB= container.Resolve<IFoo>();// Return an IEnumerable with 2 elements FooA and FooBvarall= container.Resolve<IEnumerable<IFoo>>();varallAlt= container.ResolveAll<IFoo>();
Actual
// This works as expectedvarfooB= container.Resolve<IFoo>();// This only returns a collection with the single element for FooBvarall= container.Resolve<IEnumerable<IFoo>>();// This returns an empty collectionvarallAlt= container.ResolveAll<IFoo>();
The text was updated successfully, but these errors were encountered:
Description
Similar to issue #124 Unity has issues with multiple registrations followed by a ResolveAll.
Expected
Actual
The text was updated successfully, but these errors were encountered: