问题
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