Ejemplo n.º 1
0
 private async Task SyncModels(List <T> cacheToSync)
 {
     // store
     using (var context = new StorageContext(_parentContext))
     {
         await context.StoreAsync(_operation, cacheToSync);
     }
 }
Ejemplo n.º 2
0
        private async Task SyncModels()
        {
            // store
            using (var context = new StorageContext(_parentContext))
            {
                await context.StoreAsync(_operation, _modelCache);
            }

            // clear the cache
            _modelCache.Clear();
        }