private void Run(CancellationToken cancellationToken) { LocalizationHelper.InitThread(); try { using (QueryRequest.QueryLock.GetReadLock()) { var queryResults = QueryResults.Empty .SetParameters(QueryRequest.QueryParameters) .SetSourceRows(RowSource.ListRowItems()); queryResults = RunAll(cancellationToken, queryResults); QueryRequest.SetFinalQueryResults(queryResults); } } catch (OperationCanceledException) { } catch (Exception e) { if (!(e.InnerException is OperationCanceledException)) { QueryRequest.OnUnhandledException(e); } } }
private void Run(CancellationToken cancellationToken) { LocalizationHelper.InitThread(); try { var queryResults = QueryRequest.InitialQueryResults .SetSourceRows(SourceRowItems); queryResults = RunAll(new Pivoter.TickCounter(cancellationToken), queryResults); QueryRequest.SetFinalQueryResults(queryResults); } catch (OperationCanceledException) { } catch (Exception e) { if (!(e.InnerException is OperationCanceledException)) { QueryRequest.OnUnhandledException(e); } } }