public async Task <IndexValue> IndexResource(Resource resource, IKey key) { var resourceToIndex = MakeContainedReferencesUnique(resource); var indexValue = IndexResourceRecursively(resourceToIndex, key); await _indexStore.Save(indexValue).ConfigureAwait(false); return(indexValue); }
public IndexValue IndexResource(Resource resource, IKey key) { var toIndex = MakeContainedReferencesUnique(resource); //var toIndex = resource; var result = IndexResourceRecursively(toIndex, key); _indexStore.Save(result); return(result); }