Class ServerDescription
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Represents information about a server.
public sealed class ServerDescription : IEquatable<ServerDescription>
Inheritance
ServerDescription
Implements
Inherited Members
Constructors
Initializes a new instance of the ServerDescription class.
Properties
Gets the average round trip time.
Gets the canonical end point. This is the endpoint that the cluster knows this server by. Currently, it only applies to a replica set config and will match what is in the replica set configuration.
Gets the election identifier.
Gets the end point.
Gets the most recent heartbeat exception.
Gets the heartbeat interval.
Whether the server supports the hello command.
Gets a value indicating whether this server is compatible with the driver.
Gets a value indicating whether this instance is a data bearing server.
Gets the last heartbeat timestamp.
Gets the last update timestamp (when the ServerDescription itself was last updated).
Gets the last write timestamp (from the lastWrite field of the hello or legacy hello result).
Gets the logical session timeout.
Gets the maximum number of documents in a batch.
Gets the maximum size of a document.
Gets the maximum size of a message.
Gets the maximum size of a wire document.
Gets the maximum wire version.
The reason the server description was last changed.
Gets the replica set configuration.
Gets the server identifier.
Gets the server state.
Gets the replica set tags.
Gets the topology version.
Gets the server type.
Gets the approximate server version (only the major and minor version numbers are known).
Gets the wire version range.
Methods
Indicates whether the current object is equal to another object of the same type.
Determines whether the specified object is equal to the current object.
Serves as the default hash function.
Determines whether the specified ServerDescription can be considered as equal to decide should we publish sdam events or not.
Returns a string that represents the current object.
Returns a new instance of ServerDescription with some values changed.
WithHeartbeatException(Exception)
Returns a new ServerDescription with a new HeartbeatException.