Inheritance: Ncqrs.Eventing.Sourcing.SourcedEvent, IIdentifiable
Ejemplo n.º 1
0
        public User(string name)
        {
            var e = new UserCreatedEvent
            {
                Name = name,
                TimeStamp = DateTime.UtcNow
            };

            ApplyEvent(e);
        }
Ejemplo n.º 2
0
 protected void OnUserCreated(UserCreatedEvent e)
 {
     _name = e.Name;
 }