public async Task IndexSingleEntry(int entryId, CancellationToken token) { var entryItem = await _singleEntryIndexProvider.GetSingleEntryToIndex(entryId); await _indexingClient.Index(new[] { entryItem }, _singleEntryIndexProvider.IndexName, token); }
public async Task Handle(IndexQuery message, IMessageHandlerContext context) { await _indexingClient.Index(new[] { message }, _options.AnalyticsIndex, new CancellationToken()); _logger.LogInformation("Indexed query \"{query}\"", message.Query); }