private EventStream BuildEventStreamFrom(SqlEventStream sqlEventStream)
 {
     return(new EventStream(
                sqlEventStream.Id,
                sqlEventStream.AggregateRootId,
                sqlEventStream.AggregateRootName,
                sqlEventStream.Version,
                sqlEventStream.CommandId,
                sqlEventStream.Timestamp,
                _jsonSerializer.Deserialize <IEnumerable <IEvent> >(sqlEventStream.Events)));
 }
Exemple #2
0
 private EventStream BuildEventStreamFrom(SqlEventStream sqlEventStream)
 {
     return new EventStream(
             sqlEventStream.Id,
             sqlEventStream.AggregateRootId,
             sqlEventStream.AggregateRootName,
             sqlEventStream.Version,
             sqlEventStream.CommandId,
             sqlEventStream.Timestamp,
             _jsonSerializer.Deserialize<IEnumerable<IEvent>>(sqlEventStream.Events));
 }