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

Popular posts from this blog

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -