コード例 #1
0
ファイル: Program.cs プロジェクト: toby2o12/shriek-fx
        public void Execute(ICommandContext context, SampleCommand command)
        {
            var root = context.GetAggregateRoot(command.AggregateId, () => SampleAggregateRoot.Register(command));

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

            return(root);
        }