Inheritance: Ncqrs.Eventing.Sourcing.SourcedEvent, IIdentifiable
Exemple #1
0
        public void SetPassword(Guid userID, string password)
        {
            var e = new UserPasswordSetEvent(Guid.NewGuid(), Guid.Empty, Version + 1, DateTime.UtcNow)
            {
                UserID = userID,
                Password = password,
                TimeStamp = DateTime.UtcNow
            };

            ApplyEvent(e);
        }
Exemple #2
0
 protected void OnUserPasswordSet(UserPasswordSetEvent e)
 {
     _password = e.Password;
 }