Пример #1
0
        /// <summary>
        /// Returns have not yet synchronized items added since the last synchronization.
        /// </summary>
        /// <param name="context">Synchronization context.</param>
        public override IEnumerable <LocalItem> CollectNewItems(SyncContext context)
        {
            SyncItemSchema primarySchema = SyncItemSchemaCollection.First(schema =>
                                                                          schema.PrimaryEntityConfig.Order == 0);

            return(GetNotSyncedActivities(context, primarySchema));
        }
Пример #2
0
        /// <summary>
        /// <see cref="RemoteProvider.CollectNewItems"/>
        /// </summary>
        public override IEnumerable <LocalItem> CollectNewItems(SyncContext context)
        {
            if (!UserSettings.ExportContacts)
            {
                return(new List <LocalItem>());
            }
            SyncItemSchema primarySchema = SyncItemSchemaCollection.First(schema =>
                                                                          schema.PrimaryEntityConfig.Order == 0);

            return(GetNotSyncedContacts(context, primarySchema));
        }