コード例 #1
0
        public void Delete()
        {
            var @event = new SagaArticleDeletedEvent
            {
                AggregateId = Id
            };

            ApplyChange(@event);
        }
コード例 #2
0
 public void Handle(SagaArticleDeletedEvent @event)
 {
     Id = @event.AggregateId;
 }