I want to create a Structuremap named instance in code, without config file
I want to be able to create the instance like this:
var namedInjector = ObjectFactory.GetNamedInstance<IInjectable>("Other");
I cant define such a type in code. I have found this sample but it uses the old syntax of a previous version and defines the named instance as:
.ForRequestedType<MementoType>()
.AddConcreteType<ConcreteType>(instanceName)
In the latest structuremap version there is no .AddConcreteType(instanceName) method which takes a instance name.