async Task <ItemQuery> GetSyncQuery(ISynchronizedView view)
        {
            if (!view.IsStale(m_maxAgeInSeconds))
            {
                return(null);
            }

            SynchronizedType sType = view as SynchronizedType;

            if (sType != null && await sType.HasPendingChangesAsync())
            {
                return(null);
            }

            return(view.GetSynchronizationQuery());
        }
        async Task<ItemQuery> GetSyncQuery(ISynchronizedView view)
        {
            if (!view.IsStale(m_maxAgeInSeconds))
            {
                return null;
            }

            SynchronizedType sType = view as SynchronizedType;
            if (sType != null && await sType.HasPendingChangesAsync())
            {
                return null;
            }

            return view.GetSynchronizationQuery();
        }