I am getting LiteCoreException (1005): no status code received then attempting to start replication. Below is the code with the output. Replication using same code (with event handler modification) works fine in db019.
using System;
using Couchbase.Lite;
using Couchbase.Lite.Sync;
namespace TestReplication
{
class Program
{
static void Main(string args)
{
Couchbase.Lite.Support.NetDesktop.Activate();
Database db = new Database("db");
Uri url = new Uri("ws://localhost:4984/db");
ReplicatorConfiguration config = new ReplicatorConfiguration(db, url)
{
Continuous = true,
ReplicatorType = ReplicatorType.PushAndPull
};
Replicator replication = new Replicator(config);
replication.AddChangeListener(onReplicationCompleted);
replication.Start();
Console.ReadLine();
}
static void onReplicationCompleted(object sender, ReplicationStatusChangedEventArgs replicationEvent)
{
if (replicationEvent.Status.Activity == ReplicatorActivityLevel.Stopped)
{
Console.WriteLine("Replication has completed.");
}
}
}
}