Is there a way to determine if a particular type has been configured in StructureMap?
I want to return a generic type if it has not been specifically configured in StructureMap.
In v2.6 you want:
IContainer.Model.HasImplementationsFor(serviceType)
From StructureMap version 2.5.1, there are TryGetInstance<T>() and TryGetNamedInstance<T>() , which will return the default value T if T unknown.
TryGetInstance<T>()
TryGetNamedInstance<T>()
T