コード例 #1
0
        private ActivityListAggregateRoot(Guid activityListId) : this()
        {
            var createdEvent = new ActivityListCreated(activityListId);

            this.Apply(createdEvent);
            this.RaiseEvent(new ActivityListCreated(activityListId));
        }
コード例 #2
0
 private void Apply(ActivityListCreated obj)
 {
     this.Activities  = new Dictionary <string, Guid>();
     this.AggregateId = obj.AggregateId;
 }