Using StructureMap, is it possible to have a singleton object for each value of an argument? For example, say I want to maintain a different singleton for each website in a multi-tenancy web app:
For<ISiteSettings>().Singleton().Use<SiteSettings>();
I want to maintain a different singleton object corresponding to each site:
ObjectFactory.With<string>(requestHost).GetInstance<ISiteSettings>();
Currently, it seems to create a new object every time I try to resolve ISiteSettings.