public async Task HandleAsync(RemarkVoteSubmitted @event) { await _handler .Run(async() => { var vote = @event.Positive ? Vote.CreatePositiveVote(@event.UserId, @event.RemarkId) : Vote.CreateNegativeVote(@event.UserId, @event.RemarkId); await _remarkStatisticsRepository.AddVoteAsync(vote); await _userStatisticsRepository.AddVoteAsync(vote); }) .OnError((ex, logger) => logger.Debug(ex, $"Error while handling {@event.GetType().Name} event")) .ExecuteAsync(); }