Ejemplo n.º 1
0
 public void Create(SampleCommand command)
 {
     ApplyChange(new SampleEvent()
     {
         AggregateId = this.AggregateId,
         No          = command.No,
         Delay       = command.Delay
     });
 }
Ejemplo n.º 2
0
        public static SampleAggregateRoot Register(SampleCommand command)
        {
            var root = new SampleAggregateRoot(command.AggregateId);

            return(root);
        }