首页 > 其他分享 >Sitecore DI

Sitecore DI

时间:2023-03-16 16:13:39浏览次数:41  
标签:依賴 通過 配置文件 DI ExperienceForms Sitecore

依賴注入

通過 showconfig.aspx 工具查看

image

可參考系統自帶的配置文件寫法:<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

相关文章