コード例 #1
0
        public static DrillingDepartmentState BuildStateFromHistory(IEnumerable<Event> events)
        {
            var state = new DrillingDepartmentState();

            foreach (var e in events)
            {
                state.Mutate((Event) e);
            }
            return state;
        }
コード例 #2
0
 public DrillingDepartmentAggregate(DrillingDepartmentState aggregateState)
 {
     _aggregateState = aggregateState;
 }