sitecore - Resolve ISitecoreService using SimpleInjector -
isitecoreservice accepts database name string parameter in constructor (web or master)
isitecoreservice service = new sitecoreservice("master"); //or isitecoreservice service = new sitecoreservice("web");
is possible dynamically send database name parameter ioc , resolve it? example send web/master string parameter , new instance of isitecoreservice
like this?
container.register<isitecoreservice>(() => new sitecoreservice("master"));
Comments
Post a Comment