public TextIndexingProcess(IContentTextIndex textIndexer, ITextIndexerState textIndexerState) { Guard.NotNull(textIndexer); Guard.NotNull(textIndexerState); this.textIndexer = textIndexer; this.textIndexerState = textIndexerState; }
public TextIndexingProcess(ITextIndex textIndexer, ITextIndexerState textIndexerState) { Guard.NotNull(textIndexer, nameof(textIndexer)); Guard.NotNull(textIndexerState, nameof(textIndexerState)); this.textIndexer = textIndexer; this.textIndexerState = textIndexerState; }
public async Task WriteAsync(ITextIndex textIndex, ITextIndexerState textIndexerState) { if (commands.Count > 0) { await textIndex.ExecuteAsync(commands.Values.ToArray()); } if (updates.Count > 0) { await textIndexerState.SetAsync(updates.Values.ToList()); } }
public CachingTextIndexerState(ITextIndexerState inner) { Guard.NotNull(inner, nameof(inner)); this.inner = inner; }