Inheritance: Ncqrs.Eventing.Sourcing.SourcedEvent, IIdentifiable
示例#1
0
 protected void OnUserValidated(UserValidatedEvent e)
 {
     _userState = UserState.Authenticated;
 }
示例#2
0
        public void Validated(Guid userID)
        {
            var e = new UserValidatedEvent(Guid.NewGuid(), Guid.Empty, Version + 1, DateTime.UtcNow)
            {
                UserID = userID,
                TimeStamp = DateTime.UtcNow
            };

            ApplyEvent(e);
        }