Exemplo n.º 1
0
 /// <inheritdoc/>
 public mongoDB.StreamEvent ToStoreStreamEvent(CommittedEvent committedEvent, StreamPosition streamPosition, PartitionId partition) =>
 new mongoDB.StreamEvent(
     streamPosition,
     partition,
     committedEvent.ExecutionContext.ToStoreRepresentation(),
     committedEvent.GetStreamEventMetadata(),
     committedEvent.GetAggregateMetadata(),
     committedEvent.GetEventHorizonMetadata(),
     BsonDocument.Parse(committedEvent.Content));