protected void UpdateReplication(IDatabaseCommands source, IEnumerable <RavenJObject> destinations) { Assert.NotEmpty(destinations); var patches = new List <PatchRequest>(); foreach (var dest in destinations) { patches.Add(new PatchRequest { Type = PatchCommandType.Insert, Name = "Destinations", Value = dest }); } source.Patch(Constants.RavenReplicationDestinations, patches.ToArray()); }
public Task <RavenJObject> PatchAsync(string key, PatchRequest[] patches, bool ignoreMissing) { return(new CompletedTask <RavenJObject>(databaseCommands.Patch(key, patches, ignoreMissing))); }