Exemple #1
0
        public async Task Handle(MembershipPointsEarnedEvent notification, CancellationToken cancellationToken)
        {
            var membership = await _getMembership(notification.Id);

            membership.ApplyEvent(notification);
            _readModelDbContext.Update(membership);
            await _readModelDbContext.SaveChangesAsync();
        }