Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If I load the document with this class (See below) then it returns a ReplicationDestination with default values and not the values that I can see in the replication settings web page.This code returns a ReplicationDestination with default settings:var destinations = session.Load<Raven.Abstractions.Replication.ReplicationDestination>("Raven/Replication/Destinations");NOTE: I'm also confused as to why loading "Raven/Replication/Destinations" returns a single instance and not an array. It isn't returning the first item because the values are all defaults. It's my understanding that a Raven db can be replicated to multiple destinations.This code returns null, obviously because this isn't a valid document:var destination = session.Load<Raven.Abstractions.Replication.ReplicationDestination>("Raven/Replication/Destination");This code gets an array of JSON strings for each destination but I have no idea how to convert each one to a ReplicationDestination:
var replicationDestinations = store.DatabaseCommands.Get("Raven/Replication/Destinations");
var destinationsJSON = replicationDestinations.DataAsJson["Destinations"];So how to I get an array of ReplicationDestination instances?
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hibernating Rhinos Ltd
Tal Weiss l Core Team Developer l Mobile:+972-54-802-4849
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811l Skype: talweiss1982
RavenDB paving the way to "Data Made Simple" http://ravendb.net/
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
If I load the document with this class (See below) then it returns a ReplicationDestination with default values and not the values that I can see in the replication settings web page.This code returns a ReplicationDestination with default settings:var destinations = session.Load<Raven.Abstractions.Replication.ReplicationDestination>("Raven/Replication/Destinations");NOTE: I'm also confused as to why loading "Raven/Replication/Destinations" returns a single instance and not an array. It isn't returning the first item because the values are all defaults. It's my understanding that a Raven db can be replicated to multiple destinations.This code returns null, obviously because this isn't a valid document:var destination = session.Load<Raven.Abstractions.Replication.ReplicationDestination>("Raven/Replication/Destination");This code gets an array of JSON strings for each destination but I have no idea how to convert each one to a ReplicationDestination:
var replicationDestinations = store.DatabaseCommands.Get("Raven/Replication/Destinations");
var destinationsJSON = replicationDestinations.DataAsJson["Destinations"];
So how to I get an array of ReplicationDestination instances?
--