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

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