private async Task SyncModels(List <T> cacheToSync) { // store using (var context = new StorageContext(_parentContext)) { await context.StoreAsync(_operation, cacheToSync); } }
private async Task SyncModels() { // store using (var context = new StorageContext(_parentContext)) { await context.StoreAsync(_operation, _modelCache); } // clear the cache _modelCache.Clear(); }