The following properties can be configured when creating a new Document Store:
An initial URLs list of your RavenDB cluster nodes that is used when the client accesses the database for the first time.
Upon the first database access, the client will fetch the Database Group Topology
from the first server on this list that it successfully connected to. An exception is thrown if the client fails to connect with neither
of the servers specified on this list. The URLs from the Database Group Topology will supersede this initial URLs list for any future
access to that database.
Note: Do not create a Document Store with URLs that point to servers outside of your cluster.
Note: This list is not binding. You can always modify your cluster later dynamically, add new nodes or remove existing ones as
necessary. Learn more in Cluster View Operations.
The default database which the Client will work against.
A different database can be specified when creating a Session if needed.
Customize the Client behavior with a variety of options, overriding the default settings.
X.509 certificate used to authenticate the client to the RavenDB server
After setting the above configurations as necessary, call
.Initialize() to begin using the Document Store.
The Document Store is immutable - all above configuration are frozen upon calling .Initialize().
Create a new document store object if you need different default configuration values.
Starting with RavenDB
6.x, disposing of a store automatically removes any X509Certificate2 certificate installed for
it, to prevent the accumulation of unneeded certificate files.
To disable the automatic disposal of certificates, please use the
// Set conventions as necessary (optional)
// Disable the automatic disposal of certificates when the store is disposed of
DisposeCertificate = false