I need to override CurrentStore property of WebStoreContext based on current user using a plugin.
Inside the plugin I inherit a class from WebStoreContext and override CurrentStore  property. To get current user I have to use an instance of IWorkContext. if I inject this parameter I get autofac error :
DependencyResolutionException: Circular component dependency detected: Nop.Plugin.MyPlugin.UserStore.MyWebStoreContext -> Nop.Web.Framework.WebWorkContext -> Nop.Core.Domain.Directory.CurrencySettings -> Nop.Plugin.MyPlugin.UserStore.MyWebStoreContext

and when I use EngineContext.Current.Resolve<IWorkContext>(), I get StackOverFlow Exception.
What should I do?
Any Idea?
Thanks