Class MongoDefaults
Default values for various Mongo settings.
public static class MongoDefaults
- Inheritance
-
MongoDefaults
- Inherited Members
Properties
AssignIdOnInsert
Gets or sets whether the driver should assign a value to empty Ids on Insert.
public static bool AssignIdOnInsert { get; set; }
Property Value
AuthenticationMechanism
Gets or sets the default authentication mechanism.
public static string AuthenticationMechanism { get; set; }
Property Value
ComputedWaitQueueSize
Gets the actual wait queue size (either WaitQueueSize or WaitQueueMultiple x MaxConnectionPoolSize).
[Obsolete("This property will be removed in a later release.")]
public static int ComputedWaitQueueSize { get; }
Property Value
ConnectTimeout
Gets or sets the connect timeout.
public static TimeSpan ConnectTimeout { get; set; }
Property Value
GuidRepresentation
Gets or sets the representation to use for Guids (this is an alias for BsonDefaults.GuidRepresentation).
[Obsolete("Configure serializers instead.")]
public static GuidRepresentation GuidRepresentation { get; set; }
Property Value
LocalThreshold
Gets or sets the default local threshold.
public static TimeSpan LocalThreshold { get; set; }
Property Value
MaxBatchCount
Gets or sets the maximum batch count.
public static int MaxBatchCount { get; set; }
Property Value
MaxConnectionIdleTime
Gets or sets the max connection idle time.
public static TimeSpan MaxConnectionIdleTime { get; set; }
Property Value
MaxConnectionLifeTime
Gets or sets the max connection life time.
public static TimeSpan MaxConnectionLifeTime { get; set; }
Property Value
MaxConnectionPoolSize
Gets or sets the max connection pool size.
public static int MaxConnectionPoolSize { get; set; }
Property Value
MaxDocumentSize
Gets or sets the max document size
public static int MaxDocumentSize { get; set; }
Property Value
MaxMessageLength
Gets or sets the max message length.
public static int MaxMessageLength { get; set; }
Property Value
MinConnectionPoolSize
Gets or sets the min connection pool size.
public static int MinConnectionPoolSize { get; set; }
Property Value
OperationTimeout
Gets or sets the operation timeout.
public static TimeSpan OperationTimeout { get; set; }
Property Value
ReadEncoding
Gets or sets the Read Encoding.
public static UTF8Encoding ReadEncoding { get; set; }
Property Value
ServerSelectionTimeout
Gets or sets the server selection timeout.
public static TimeSpan ServerSelectionTimeout { get; set; }
Property Value
SocketTimeout
Gets or sets the socket timeout.
public static TimeSpan SocketTimeout { get; set; }
Property Value
TcpReceiveBufferSize
Gets or sets the TCP receive buffer size.
public static int TcpReceiveBufferSize { get; set; }
Property Value
TcpSendBufferSize
Gets or sets the TCP send buffer size.
public static int TcpSendBufferSize { get; set; }
Property Value
WaitQueueMultiple
Gets or sets the wait queue multiple (the actual wait queue size will be WaitQueueMultiple x MaxConnectionPoolSize, see also WaitQueueSize).
[Obsolete("This property will be removed in a later release.")]
public static double WaitQueueMultiple { get; set; }
Property Value
WaitQueueSize
Gets or sets the wait queue size (see also WaitQueueMultiple).
[Obsolete("This property will be removed in a later release.")]
public static int WaitQueueSize { get; set; }
Property Value
WaitQueueTimeout
Gets or sets the wait queue timeout.
public static TimeSpan WaitQueueTimeout { get; set; }
Property Value
WriteEncoding
Gets or sets the Write Encoding.
public static UTF8Encoding WriteEncoding { get; set; }