Exemplo n.º 1
0
        public async Task Delete(long userId)
        {
            _userDomainService.CheckUser(userId);
            var user = await _userDomainService.Get(userId);

            await _userRep.DeleteAsync(user);

            await _publisher.PublishAsync(nameof(LogoutEventData), new LogoutEventData
            {
                UserIds = new List <long> {
                    userId
                }
            });
        }