Esempio n. 1
0
 //constructor with IMemento parameter for EventStore Snapshooting
 private User(UserMemento mementoItem)
 {
     Id              = mementoItem.Id;
     Version         = mementoItem.Version;
     Name            = mementoItem.Name;
     Surname         = mementoItem.Surname;
     Email           = mementoItem.Email;
     UserName        = mementoItem.UserName;
     Picture         = mementoItem.Picture;
     IsActivated     = mementoItem.IsActivated;
     ReputationScore = mementoItem.ReputationScore;
     Badges          = mementoItem.Badges;
 }
Esempio n. 2
0
 //constructor with IMemento parameter for EventStore Snapshooting
 private User(UserMemento mementoItem)
 {
     Id = mementoItem.Id;
     Version = mementoItem.Version;
     Name = mementoItem.Name;
     Surname = mementoItem.Surname;
     Email = mementoItem.Email;
     UserName = mementoItem.UserName;
     Picture = mementoItem.Picture;
     IsActivated = mementoItem.IsActivated;
     ReputationScore = mementoItem.ReputationScore;
     Badges = mementoItem.Badges;
 }
Esempio n. 3
0
 public UserMementoPropagatedEvent(UserMemento memento)
 {
     Memento = memento;
 }