Example #1
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)));
 }
Example #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));
 }