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

            return(root);
        }