Class MongoUrl
Represents an immutable URL style connection string. See also MongoUrlBuilder.
- Inheritance
-
Mongo
Url
- Implements
- Inherited Members
Constructors
- Mongo
Url(string) Creates a new instance of MongoUrl.
Properties
- Allow
Insecure Tls Gets whether to relax TLS constraints as much as possible.
- Application
Name Gets the application name.
- Authentication
Mechanism Gets the authentication mechanism.
- Authentication
Mechanism Properties Gets the authentication mechanism properties.
- Authentication
Source Gets the authentication source.
- Compressors
Gets the compressors.
- Computed
Wait Queue Size Gets the actual wait queue size (either WaitQueueSize or WaitQueueMultiple x MaxConnectionPoolSize).
- Connect
Timeout Gets the connect timeout.
- Database
Name Gets the optional database name.
- Direct
Connection Gets the direct connection.
- FSync
Gets the FSync component of the write concern.
- Has
Authentication Settings Gets a value indicating whether this instance has authentication settings.
- Heartbeat
Interval Gets the heartbeat interval.
- Heartbeat
Timeout Gets the heartbeat timeout.
- IPv6
Gets a value indicating whether to use IPv6.
- Is
Resolved Gets a value indicating whether a connection string with scheme MongoDBPlusSrv has been resolved.
- Journal
Gets the Journal component of the write concern.
- Load
Balanced Gets or sets whether load balanced mode is used.
- Local
Threshold Gets the local threshold.
- Max
Connecting Gets the maximum concurrently connecting connections.
- Max
Connection Idle Time Gets the max connection idle time.
- Max
Connection Life Time Gets the max connection life time.
- Max
Connection Pool Size Gets the max connection pool size.
- Min
Connection Pool Size Gets the min connection pool size.
- Password
Gets the password.
- Read
Concern Level Gets the read concern level.
- Read
Preference Gets the read preference.
- Replica
Set Name Gets the name of the replica set.
- Retry
Reads Gets whether reads will be retried.
- Retry
Writes Gets whether writes will be retried.
- Scheme
Gets the connection string scheme.
- Server
Gets the address of the server (see also Servers if using more than one address).
- Server
Monitoring Mode Gets the server monitoring mode to use.
- Server
Selection Timeout Gets the server selection timeout.
- Servers
Gets the list of server addresses (see also Server if using only one address).
- Socket
Timeout Gets the socket timeout.
- Srv
Max Hosts Limits the number of SRV records used to populate the seedlist during initial discovery, as well as the number of additional hosts that may be added during SRV polling.
- Srv
Service Name Gets the SRV service name which modifies the srv URI to look like:
_{srvServiceName}._tcp.{hostname}.{domainname}
- Tls
Disable Certificate Revocation Check Gets whether or not to disable checking certificate revocation status during the TLS handshake.
- Url
Gets the URL (in canonical form).
- Use
Ssl Gets a value indicating whether to use SSL.
- Use
Tls Gets a value indicating whether to use TLS.
- Username
Gets the username.
- Verify
Ssl Certificate Gets a value indicating whether to verify an SSL certificate.
- W
Gets the W component of the write concern.
- WTimeout
Gets the WTimeout component of the write concern.
- Wait
Queue Multiple Gets the wait queue multiple (the actual wait queue size will be WaitQueueMultiple x MaxConnectionPoolSize).
- Wait
Queue Size Gets the wait queue size.
- Wait
Queue Timeout Gets the wait queue timeout.
Methods
- Clear
Cache() Clears the URL cache. When a URL is parsed it is stored in the cache so that it doesn't have to be parsed again. There is rarely a need to call this method.
- Create(string)
Creates an instance of MongoUrl (might be an existing existence if the same URL has been used before).
- Equals(Mongo
Url) Compares two MongoUrls.
- Equals(object)
Compares two MongoUrls.
- Get
Credential() Gets the credential.
- Get
Hash Code() Gets the hash code.
- Get
Write Concern(bool) Returns a WriteConcern value based on this instance's settings and a default enabled value.
- Resolve(bool,
Cancellation Token) Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
- Resolve(Cancellation
Token) Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
- Resolve
Async(bool, Cancellation Token) Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
- Resolve
Async(Cancellation Token) Resolves a connection string. If the connection string indicates more information is available in the DNS system, it will acquire that information as well.
- To
String() Returns the canonical URL based on the settings in this MongoUrlBuilder.
Operators
- operator ==(Mongo
Url, Mongo Url) Compares two MongoUrls.
- operator !=(Mongo
Url, Mongo Url) Compares two MongoUrls.