Esempio 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;
            }
        }
Esempio 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;
            }
        }