Created
August 1, 2019 20:47
-
-
Save JudahGabriel/2e77f243b2b31db713eca8072dc6b549 to your computer and use it in GitHub Desktop.
Configuring a connection to a RavenDB Cloud cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Connect to our RavenDB Cloud cluster. | |
// Notice the only thing that has changed is that we're passing 3 URLs in, one for each node in our cluster. | |
var raven = new DocumentStore | |
{ | |
Database = "OldWestHeroes", | |
Urls = new[] | |
{ | |
"https://a.cluster.clistctrl.ravendb.cloud", | |
"https://b.cluster.clistctrl.ravendb.cloud", | |
"https://c.cluster.clistctrl.ravendb.cloud", | |
}, | |
Certificate = new X509Certificate2("\path\to\cluster.clistctrl.client.certificate.pfx", "") | |
}; | |
raven.Initialize(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment