Exemple #1
0
        public static void PushChanges(ISyncClient client, ISyncServer server)
        {
            while(true)
            {
                var entity = client.GetChangedOnClient();
                if (entity == null)
                    break;

                var server_sync_date = server.SendChangedToServer(entity);
                client.SetClientEntitySynced(entity, server_sync_date);
            }
        }
Exemple #2
0
        public static void PushChanges(ISyncClient client, ISyncServer server)
        {
            while (true)
            {
                var entity = client.GetChangedOnClient();
                if (entity == null)
                {
                    break;
                }

                var server_sync_date = server.SendChangedToServer(entity);
                client.SetClientEntitySynced(entity, server_sync_date);
            }
        }