StructureMap - check if instance of some class/interface has been already created
I have the need to check if an instance of some interface has already been created by structuremap. I have tried ObjectFactory.GetInstance<T>() but this creates a new instance of T when called and a concrete instance of T does not exist. I just want to check if an instance of T has already been created (not to create a new). I need this to force the creation of instances through a certain class).
StructureMap - check if instance of some class/interface has been already created
===

I have the need to check if an instance of some interface has already been created by structuremap. I have tried ObjectFactory.GetInstance<T>() but this creates a new instance of T when called and a concrete instance of T does not exist. I just want to check if an instance of T has already been created (not to create a new). I need this to force the creation of instances through a certain class).