コード例 #1
0
ファイル: Case.cs プロジェクト: Nillerr/EventSourcing.Demo
        public void AssignToDistributor()
        {
            var @event = new CaseAssignedToDistributor();

            Apply(@event);
            Append(Guid.NewGuid(), CaseAssignedToDistributor.EventType, @event);
        }
コード例 #2
0
ファイル: Case.cs プロジェクト: Nillerr/EventSourcing.Demo
 private void Apply(CaseAssignedToDistributor @event)
 {
     Status = CaseStatus.WaitingForDistributor;
 }