Exemplo n.º 1
0
        private static void PullChanges(ISyncClient client, ISyncServer server)
        {
            var date = client.GetMaxServerSyncDate();
            while(true)
            {
                var proxy = server.GetChangedFromServer(date);
                if (proxy == null)
                    break;

                client.ApplyChangeFromServer(proxy);
                date = proxy.ServerSyncDate;
            }
        }
Exemplo n.º 2
0
        private static void PullChanges(ISyncClient client, ISyncServer server)
        {
            var date = client.GetMaxServerSyncDate();

            while (true)
            {
                var proxy = server.GetChangedFromServer(date);
                if (proxy == null)
                {
                    break;
                }

                client.ApplyChangeFromServer(proxy);
                date = proxy.ServerSyncDate;
            }
        }