コード例 #1
0
 public void Create(SampleCommand command)
 {
     ApplyChange(new SampleEvent()
     {
         AggregateId = this.AggregateId,
         No          = command.No,
         Delay       = command.Delay
     });
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: toby2o12/shriek-fx
        public static SampleAggregateRoot Register(SampleCommand command)
        {
            var root = new SampleAggregateRoot(command.AggregateId);

            return(root);
        }