Inheritance: Ncqrs.Eventing.Sourcing.SourcedEvent, IIdentifiable
Ejemplo n.º 1
0
        public void Delete(Guid userID)
        {
            var e = new UserDeletedEvent(Guid.NewGuid(), Guid.Empty, Version+1, DateTime.UtcNow)
            {
                UserID = userID,
                TimeStamp = DateTime.UtcNow
            };

            ApplyEvent(e);
        }
Ejemplo n.º 2
0
 protected void OnUserDeleted(UserDeletedEvent e)
 {
     _userState = UserState.Deleted;
 }