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

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