예제 #1
0
 public CartService(IAppSettings appSettings, ILivisUserContext userContext, IMapper mapper, IRequestProcessor processor)
 {
     _mapper         = mapper;
     _appSettings    = appSettings;
     _userContext    = userContext;
     _processor      = processor;
     _productService = new ProductService(_userContext, _processor);
 }
예제 #2
0
        private void InitializeServices(IServiceProvider serviceLocator)
        {
            _signInManager = serviceLocator.GetService <SignInManager <LevisUser> >();
            _userManager   = serviceLocator.GetService <UserManager <LevisUser> >();
            _mapper        = serviceLocator.GetService <IMapper>();
            _processor     = serviceLocator.GetService <IRequestProcessor>();
            _appSettings   = serviceLocator.GetService <IAppSettings>();

            _userContext = new UserContext(_userManager, _appSettings, _processor, this);
            _cartService = new CartService(_appSettings, _userContext, _mapper, _processor);
        }
예제 #3
0
 public ProductService(ILivisUserContext userContext, IRequestProcessor processor)
 {
     _userContext = userContext;
     _processor   = processor;
 }