Пример #1
0
 ISourceSearchResultInternal ISearchObjectsFactory.CreateSourceSearchResults(
     ILogSourceSearchWorkerInternal searchWorker,
     ISearchResultInternal owner,
     CancellationToken cancellation,
     Progress.IProgressAggregator progress
     )
 {
     return(new SourceSearchResult(searchWorker, owner, cancellation,
                                   progress, telemetryCollector));
 }
Пример #2
0
        public SourceSearchResult(
            ILogSourceSearchWorkerInternal worker,
            ISearchResultInternal parent,
            CancellationToken cancellation,
            Progress.IProgressAggregator progress,
            Telemetry.ITelemetryCollector telemetryCollector
            )
        {
            this.searchWorker       = worker;
            this.parent             = parent;
            this.telemetryCollector = telemetryCollector;
            this.messages           = new MessagesContainers.ListBasedCollection();

            this.progressSink = progress.CreateProgressSink();
            this.workerTask   = Worker(cancellation, progressSink);
            AwaitWorker();
        }