Esempio n. 1
0
        public Task Handle(UserSignedIn user, CancellationToken cancellationToken)
        {
            var guestUser = _workContext.GetCurrentUser().Result;

            _comparingService.MigrateComparingProduct(guestUser.Id, user.UserId);
            return(Task.CompletedTask);
        }
        public void Handle(UserSignedIn user)
        {
            var guestUser = _workContext.GetCurrentUser().Result;

            _comparingService.MigrateComparingProduct(guestUser.Id, user.UserId);
        }
        public async Task Handle(UserSignedIn user, CancellationToken cancellationToken)
        {
            var guestUser = await _workContext.GetCurrentUser();

            _comparingService.MigrateComparingProduct(guestUser.Id, user.UserId);
        }