[This is preliminary documentation and is subject to change.]
The MongoClient type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | MongoClient |
Creates a new instance of client.
For most applications it is sufficient to use the default singleton instance Client.Instance
|
Methods
Name | Description | |
---|---|---|
![]() | __setComponentDirector | (Inherited from ApplicationComponent.) |
![]() | Configure |
Sets config root. If this method is never called then configuration is done of the App.CONFIG_MONGO_CLIENT_SECTION section
|
![]() ![]() | DatabaseFromConnectString |
Return a Database instance per supplied connection string in the following form:
mongo{server="mongo://localhost:27017" db="myDB"} |
![]() | Destructor | (Overrides ApplicationComponent Destructor .) |
![]() | Dispose |
Deterministically disposes object. DO NOT OVERRIDE this method, override Destructor() instead
(Inherited from DisposableObject.) |
![]() | EnsureObjectNotDisposed |
Checks to see whether object dispose started or has already been disposed and throws an exception if Dispose() was called
(Inherited from DisposableObject.) |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ExternalGetParameter | |
![]() | ExternalParametersForGroups | |
![]() | ExternalSetParameter | |
![]() | Finalize | (Inherited from DisposableObject.) |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ToString | (Overrides ![]() |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() ![]() | CONFIG_CS_DB_ATTR | |
![]() ![]() | CONFIG_CS_ROOT_SECTION | |
![]() ![]() | CONFIG_CS_SERVER_ATTR | |
![]() ![]() | CONFIG_MONGO_CLIENT_SECTION | |
![]() | m_Servers |
Properties
Name | Description | |
---|---|---|
![]() | ComponentCommonName |
Returns the common name used to identify the component, for example "Glue" for various IGlue implementations.
This name is searched-by some management tools that allow to find component by this name that does not change between
application restarts like ComponentSID does. Subordinate (non-root) components return null
(Inherited from ApplicationComponent.) |
![]() | ComponentDirector |
Returns a reference to an object that this app component services/operates under, or null
(Inherited from ApplicationComponent.) |
![]() | ComponentSID |
Returns process/instance unique app component system id
(Inherited from ApplicationComponent.) |
![]() | ComponentStartTime |
Returns local computer time of component start (not from application container time)
(Inherited from ApplicationComponent.) |
![]() | ConfigRoot |
Returns the config root of the client that was set by the last call to Configure()
or App.CONFIG_MONGO_CLIENT_SECTION (which may be non-existent)
|
![]() | DefaultLocalServer |
Returns ServerNode for local server on a default port
|
![]() | Disposed |
Indicates whether this object was already disposed - the Dispose() has finished
(Inherited from DisposableObject.) |
![]() | DisposeStarted |
Indicates whether this object Dispose() has been called and dispose started but not finished yet
(Inherited from DisposableObject.) |
![]() | ExternalParameters | |
![]() ![]() | Instance |
Retrurns the default instance of the Client, lazily crating it on the first access
|
![]() | InstrumentationEnabled | |
![]() | Item |
Returns an existing server node or creates a new one
|
![]() | Name | |
![]() | Servers |
Returns all connected servers
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | IApplicationFinishNotifiable ApplicationFinishAfterCleanup | |
![]() ![]() | IApplicationFinishNotifiable ApplicationFinishBeforeCleanup |
See Also