Ejemplo n.º 1
0
 public static IMessageHeader RebuildMessageHeader(BsonDocument bsonDoc)
 {
     return(new MessageHeader
     {
         MessageGuid = Guid.Parse(bsonDoc["MessageGuid"].AsString),
         ProducerProcessID = bsonDoc["ProducerProcessID"].AsInt32,
         ProducerExecutableName = bsonDoc["ProducerExecutableName"].AsString,
         Parents = MessageHeader.GetGuidArray(bsonDoc["Parents"].AsString),
         OriginalPublishTimestamp = bsonDoc["OriginalPublishTimestamp"].AsInt64
     });
 }