Method FromBsonDocument
FromBsonDocument(BsonDocument)
Attempts to create a TopologyVersion from the supplied BsonDocument.
public static TopologyVersion FromBsonDocument(BsonDocument document)
Parameters
document
BsonDocumentThe document. Should contain an ObjectId named "processId" and a BsonInt64 named "counter".
Returns
- TopologyVersion
A TopologyVersion if one could be constructed from the supplied document and null otherwise.