void CancelAsyncSearch() { hexMarkerAsyncSearcher?.CancelAndDispose(); hexMarkerAsyncSearcher = null; hexMarkerSearchService = null; }
public AsyncSearcher(HexSearchService hexSearchService, SearchOptions searchOptions) { HexSearchService = hexSearchService; SearchOptions = searchOptions; cancellationTokenSource = new CancellationTokenSource(); CancellationToken = cancellationTokenSource.Token; }