JasperFx / lamar

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

An item with the same key has already been added. #112

Closed matthawley closed 5 years ago

matthawley commented 5 years ago

Upgraded to v2.0.1 to take in the fix for #104 however it still seems to be occurring when concurrent requests are executed resolving the same type.

Message: An item with the same key has already been added.

at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Lamar.IoC.Resolvers.ScopedResolver`1.Resolve(Scope scope)
at Lamar.IoC.Scope.GetInstance[T]()
jeremydmiller commented 5 years ago

Dunno, you're gonna have to give me repro steps

matthawley commented 5 years ago

I'll see if I can get a repro.

jeremydmiller commented 5 years ago

No new updates, I'm closing this