I can't figure out how to define an object as singleton AND define two arguments for the constructor.
I can do either / or .. just not at the same time.
Eg. (this does not work)...
ForRequestedType<IFoo>()
.TheDefaultIsConcreteType<Foo>()
.CacheBy(InstanceScope.Singleton)
.WithCtorArg("alpha").EqualToAppSetting("Alpha")
.WithCtorArg("beta").EqualToAppSetting("Beta");
Suggestions?
source
share