Resolving a class with a custom parameter in Simple Injector
问题 I'm creating a WPF MVVM application using Simple Injector as DI container. Now I'm having some issues when I'm trying to resolve a view from Simple Injector, because I'm in need of passing a parameter into my constructor at construction time (not when registering the view to the container, thus this is not applicable: Simple Injector pass values into constructor). What I'm after is something like this: var item = container.GetInstance<MyType>(myParameter); I've read several places that this