Example #1
0
 public void Dispose()
 {
     if (_currentBatch.Any())
     {
         _indexer.IndexAsync(_currentBatch).Wait();
         _currentBatch.Clear();
     }
 }
Example #2
0
 public void Dispose()
 {
     if (!_currentBatch.IsEmpty)
     {
         _indexer.IndexAsync(_currentBatch);
         _currentBatch.Clear();
     }
 }