JasperFx / lamar

Fast Inversion of Control Tool and Successor to StructureMap
https://jasperfx.github.io/lamar
MIT License
568 stars 119 forks source link

"Reset" Lamar Singletons Instances #161

Closed mrxrsd closed 5 years ago

mrxrsd commented 5 years ago

Hi,

Is it possible to "reset" Lamar singletons instances?

I'm trying to generate code on-the-fly and inject as singleton instances. But I want to be capable of make changes on the generated code and inject the new version without reset my host.

jeremydmiller commented 5 years ago

Not right now, no. You can take advantage of the Injectable feature I suppose. I really didn't want to support that kind of thing in Lamar because of the complexity and/or perf hit that caused in StructureMap.