londondev
londondev

Reputation: 231

RavenDB 2.5 failover server setup

We are using RavenDB 2.5 and need to set failover connection detail in our C# solution. I found the document that explains how to do this here, http://ravendb.net/docs/article-page/3.0/csharp/client-api/bundles/how-client-integrates-with-replication-bundle#failover-servers

but there is no failover servers property of IDocumentStore in version 2.5.

How to set failover connection details in C# Raven client?

Upvotes: 0

Views: 133

Answers (1)

Ayende Rahien
Ayende Rahien

Reputation: 22956

In 2.5, you need to create you own ReplicationInformer class that has a default, although note that it is usually much easier to just call: ReplicationInformerLocalCache.TrySavingReplicationInformationToLocalCache with the destinations of your choice.

https://github.com/ayende/ravendb/blob/2.5/Raven.Client.WinRT/Connection/ReplicationInformerLocalCache.cs#L49

Upvotes: 0

Related Questions