依賴注入
通過 showconfig.aspx 工具查看
可參考系統自帶的配置文件寫法:
<siteroot>\App_Config\Sitecore\ExperienceForms\Sitecore.ExperienceForms.Mvc.config
<sitecore>
<services>
<register serviceType="Sitecore.ExperienceForms.Processing.IFormSubmitHandler, Sitecore.ExperienceForms" implementationType="Sitecore.ExperienceForms.Mvc.Processing.FormSubmitHandler, Sitecore.ExperienceForms.Mvc" lifetime="Transient"/>
</services>
</sitecore>
标签:依賴,通過,配置文件,DI,ExperienceForms,Sitecore
From: https://www.cnblogs.com/fires/p/17222993.html