Example #1
0
        public void DeleteEntry(SyncContext context, StateSyncEntry entry, SyncDeleteEntryOptions options = null)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (entry == null)
            {
                throw new ArgumentNullException(nameof(entry));
            }

            Account.DeleteFile(entry.Id);
        }
        public Task DeleteEntryAsync(SyncContext context, StateSyncEntry entry, SyncDeleteEntryOptions options = null)
        {
            var item = new WebItem {
                Id = ToId(entry.Id)
            };

            if (item.Id == Guid.Empty)
            {
                return(Task.CompletedTask);
            }

            return(item.DeleteAsync(new DeleteOptions {
                Recursive = options?.Recursive == true
            }));
        }