Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResolveAll doesn't check if implementations are in the container already #99

Open
togakangaroo opened this issue Jun 16, 2016 · 0 comments

Comments

@togakangaroo
Copy link

togakangaroo commented Jun 16, 2016

c.Register<T1>().AsSingleton();
c.RegisterMultiple(typeof(I1), new[] { typeof(T1) });
Assert.AreEqual(c.Resolve<T1>(), c.Resole<I1>().First())

the implementating types should be resolved from the container as well.

I'm basically doing this and it is failing

  • register several UIs as singletons
  • all UIs implement an interface - RegisterMultiple this interface to all UIs
  • resolve select UIs and show them
  • ....later
  • all UIs via the interface and dispose of them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant