Class Connection
Represent a connection to MongoDB server. Normally developers should not work with this class directly as connections are managed by the Client. This class is not thread safe and must be Acquired first before sending data
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Data.Access.MongoDb.Connector
Assembly: Azos.MongoDb.dll
Syntax
public sealed class Connection : DisposableObject, IDisposable
Fields
DEFAUL_LOCAL_NODE
Declaration
public static readonly Node DEFAUL_LOCAL_NODE
Field Value
Type | Description |
---|---|
Node |
DEFAULT_LOCAL_MONGO_HOST
Declaration
public const string DEFAULT_LOCAL_MONGO_HOST = "localhost"
Field Value
Type | Description |
---|---|
System.String |
DEFAULT_MONGO_BINDING
Declaration
public const string DEFAULT_MONGO_BINDING = "mongo"
Field Value
Type | Description |
---|---|
System.String |
DEFAULT_MONGO_PORT
Declaration
public const int DEFAULT_MONGO_PORT = 27017
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
ExpirationStartUTC
Returns when the connection started to expire for its inactivity or null
Declaration
public DateTime? ExpirationStartUTC { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
IsAcquired
Declaration
public bool IsAcquired { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Server
Declaration
public ServerNode Server { get; }
Property Value
Type | Description |
---|---|
ServerNode |
Methods
Destructor()
Declaration
protected override void Destructor()
Overrides
Implements
System.IDisposable