private void _createFromHistory(IEnumerable <AggregateEventEnvelope <TAggregate> > history, TAggregateState snapshot = null) { if (snapshot != null) { Aggregate.SetState(snapshot); } else { Aggregate.SetState(new TAggregateState { Identifier = Identifier, Version = 0 }); } Aggregate.ApplyHistory(history); }