Esempio n. 1
0
        public async Task Handle(UserRegisterEvent @event)
        {
            var info = new Info
            {
                Tweets    = 0,
                Following = 0,
                Followers = 0,
                Likes     = 0,
                UserId    = @event.UserId
            };

            await _infoService.Create(info);

            _logger.LogInformation($"Welcome {@event.UserId}!");
        }