예제 #1
0
파일: IndexService.cs 프로젝트: jjrdk/spark
        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);
        }
예제 #2
0
        public IndexValue IndexResource(Resource resource, IKey key)
        {
            var toIndex = MakeContainedReferencesUnique(resource);

            //var toIndex = resource;
            var result = IndexResourceRecursively(toIndex, key);

            _indexStore.Save(result);
            return(result);
        }