Inheritance: IClientProfileState
コード例 #1
0
        public static ClientProfileState BuildStateFromEventHistory(IEnumerable<Event> events)
        {
            var aggState = new ClientProfileState();

            foreach (var eventThatHappened in events)
            {
                aggState.MakeStateRealize((IClientProfileEvent)eventThatHappened);
            }
            return aggState;
        }
コード例 #2
0
        public static ClientProfileState BuildStateFromEventHistory(IEnumerable <Event> events)
        {
            var aggState = new ClientProfileState();

            foreach (var eventThatHappened in events)
            {
                aggState.MakeStateRealize((IClientProfileEvent)eventThatHappened);
            }
            return(aggState);
        }
コード例 #3
0
 public ClientProfileAggregate(ClientProfileState aggStateBeforeChanges)
 {
     _aggState = aggStateBeforeChanges;
 }
コード例 #4
0
 public ClientProfileAggregate(ClientProfileState aggStateBeforeChanges)
 {
     _aggState = aggStateBeforeChanges;
 }