Ejemplo n.º 1
0
        public override void StartSync(IRemoteStorageSyncPersistance data, List <INote> localnotes, List <INote> localdeletednotes)
        {
            _data = (SimpleNoteData)data;

            using (var web = CreateAuthenticatedClient())
            {
                buckets = SimpleNoteAPI.ListBuckets(web);

                _logger.Debug(
                    SimpleNotePlugin.Name,
                    string.Format("SimpleNoteAPI.ListBuckets returned {0} elements", buckets.index.Count),
                    string.Join(Environment.NewLine, buckets.index.Select(b => b.id + " (" + b.v + ")")));
            }
        }
Ejemplo n.º 2
0
 public override void FinishSync()
 {
     buckets = null;
 }
Ejemplo n.º 3
0
 public override void FinishSync(out bool immediateResync)
 {
     buckets         = null;
     immediateResync = false;
 }