public void OnAnalysisResultChanged(IDataSourceAnalysisHandle handle, ILogAnalysisResult result) { if (!ReferenceEquals(handle, _currentAnalysis)) { return; //< It's likely that we've received a callback from a previous analysis that we MOST CERTAINLY need to thrash } Result = result; }
public DataSourceAnalyserSnapshot(AnalyserId id, LogAnalyserFactoryId factoryId, ILogAnalyserConfiguration configuration, ILogAnalysisResult result, Percentage progress) { if (id == AnalyserId.Empty) { throw new ArgumentException(nameof(id)); } if (factoryId == LogAnalyserFactoryId.Empty) { throw new ArgumentException(nameof(factoryId)); } Id = id; FactoryId = factoryId; _configuration = configuration; _result = result; _progress = progress; }