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
I am currently implementing plugins in my application using Simple Injector and it wasn't clear from the documentation how I could generate many instances of the same plugin without relying on the Container itself.
I finally found what the information I was looking for in this answer, that IEnumerable<IPlugin> gives you a new instance every time it is iterated through.
In the end, I was able to find that behavior described in the Collection types documentation but only because I knew what I was looking for after reading your answer on StackOverflow...
The text was updated successfully, but these errors were encountered:
I am currently implementing plugins in my application using Simple Injector and it wasn't clear from the documentation how I could generate many instances of the same plugin without relying on the
Container
itself.I finally found what the information I was looking for in this answer, that
IEnumerable<IPlugin>
gives you a new instance every time it is iterated through.I believe it would be useful to other users if this information (as sample code maybe ?) was available with the Package registrations documentation and/or Registering plugins dynamically.
In the end, I was able to find that behavior described in the Collection types documentation but only because I knew what I was looking for after reading your answer on StackOverflow...
The text was updated successfully, but these errors were encountered: