Наследование: Ncqrs.Eventing.Sourcing.SourcedEvent, IIdentifiable
Пример #1
0
        public void Invalidate(Guid userID)
        {
            var e = new UserInvalidatedEvent(Guid.NewGuid(), Guid.Empty, Version + 1, DateTime.UtcNow)
            {
                UserID = userID,
                TimeStamp = DateTime.UtcNow
            };

            ApplyEvent(e);
        }
Пример #2
0
 protected void OnUserInvalidated(UserInvalidatedEvent e)
 {
     _userState = UserState.Normal;
 }