How to use caching in DependencyRegister(Nop.Web.Framework)

ぃ、小莉子 提交于 2019-12-25 05:06:32

问题


1) How can i use Caching in DependencyRegister.cs(Nop.Web.Framework)?

2) How can i get Current Login Customer in DependencyRegister.cs(Nop.Web.Framework)?

i want to current customer id using for Caching and when we use _workcontext for customer in DependencyRegister its give Circular reference error

please guide need help.

regards, jatin


回答1:


Sorry, you can't and you don't need it.

Dependency registration happens only on nopcommerce start-up.



来源:https://stackoverflow.com/questions/24647672/how-to-use-caching-in-dependencyregisternop-web-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!