Skip to content

Instantly share code, notes, and snippets.

@JudahGabriel
Created August 1, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JudahGabriel/2e77f243b2b31db713eca8072dc6b549 to your computer and use it in GitHub Desktop.
Save JudahGabriel/2e77f243b2b31db713eca8072dc6b549 to your computer and use it in GitHub Desktop.
Configuring a connection to a RavenDB Cloud cluster
// 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