2 instantiations of CancellationState
System.Core (2)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
95
m_cancellationState = new
CancellationState
(externalCancellationToken);
System\Linq\ParallelEnumerable.cs (1)
385
settings.CancellationState = new
CancellationState
(cancellationToken);
189 references to CancellationState
System.Core (189)
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (1)
50
TaskScheduler taskScheduler,
CancellationState
cancellationState, int queryId)
System\Linq\Parallel\Merging\MergeExecutor.cs (1)
56
CancellationState
cancellationState, int queryId)
System\Linq\Parallel\Merging\OrderPreservingMergeHelper.cs (1)
43
CancellationState
cancellationState, int queryId)
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (1)
117
CancellationState
cancellationState,
System\Linq\Parallel\Partitioning\HashRepartitionEnumerator.cs (2)
211
if ((loopCount++ &
CancellationState
.POLL_INTERVAL) == 0)
212
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\Partitioning\OrderedHashRepartitionEnumerator.cs (2)
221
if ((loopCount++ &
CancellationState
.POLL_INTERVAL) == 0)
222
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (2)
317
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
318
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (8)
192
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
193
CancellationState
.ThrowIfCanceled(m_cancellationToken);
205
if ((m_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
206
CancellationState
.ThrowIfCanceled(m_cancellationToken);
278
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
279
CancellationState
.ThrowIfCanceled(m_cancellationToken);
292
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
293
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Binary\HashJoinQueryOperatorEnumerator.cs (4)
118
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
119
CancellationState
.ThrowIfCanceled(m_cancellationToken);
188
if ((mutables.m_outputLoopCount++ &
CancellationState
.POLL_INTERVAL) == 0)
189
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (8)
180
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
181
CancellationState
.ThrowIfCanceled(m_cancellationToken);
193
if ((m_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
194
CancellationState
.ThrowIfCanceled(m_cancellationToken);
282
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
283
CancellationState
.ThrowIfCanceled(m_cancellationToken);
306
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
307
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (8)
243
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
244
CancellationState
.ThrowIfCanceled(m_cancellationToken);
270
if ((m_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
271
CancellationState
.ThrowIfCanceled(m_cancellationToken);
365
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
366
CancellationState
.ThrowIfCanceled(m_cancellationToken);
382
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
383
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\CountAggregationOperator.cs (2)
115
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
116
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (2)
127
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
128
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\DecimalMinMaxAggregationOperator.cs (4)
146
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
147
CancellationState
.ThrowIfCanceled(m_cancellationToken);
160
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
161
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\DecimalSumAggregationOperator.cs (2)
113
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
114
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (2)
127
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
128
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\DoubleMinMaxAggregationOperator.cs (4)
152
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
153
CancellationState
.ThrowIfCanceled(m_cancellationToken);
166
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
167
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\DoubleSumAggregationOperator.cs (2)
115
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
116
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (2)
127
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
128
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\FloatMinMaxAggregationOperator.cs (4)
150
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
151
CancellationState
.ThrowIfCanceled(m_cancellationToken);
163
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
164
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\FloatSumAggregationOperator.cs (2)
117
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
118
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (2)
127
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
128
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\IntMinMaxAggregationOperator.cs (4)
146
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
147
CancellationState
.ThrowIfCanceled(m_cancellationToken);
160
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
161
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\IntSumAggregationOperator.cs (2)
117
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
118
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (2)
127
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
128
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\LongCountAggregationOperator.cs (2)
117
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
118
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\LongMinMaxAggregationOperator.cs (4)
147
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
148
CancellationState
.ThrowIfCanceled(m_cancellationToken);
161
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
162
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\LongSumAggregationOperator.cs (2)
116
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
117
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (2)
120
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
121
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalMinMaxAggregationOperator.cs (4)
142
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
143
CancellationState
.ThrowIfCanceled(m_cancellationToken);
156
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
157
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalSumAggregationOperator.cs (2)
110
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
111
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (2)
122
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
123
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleMinMaxAggregationOperator.cs (4)
150
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
151
CancellationState
.ThrowIfCanceled(m_cancellationToken);
165
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
166
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleSumAggregationOperator.cs (2)
110
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
111
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (2)
121
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
122
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatMinMaxAggregationOperator.cs (4)
150
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
151
CancellationState
.ThrowIfCanceled(m_cancellationToken);
165
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
166
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatSumAggregationOperator.cs (2)
110
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
111
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (2)
121
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
122
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableIntMinMaxAggregationOperator.cs (4)
142
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
143
CancellationState
.ThrowIfCanceled(m_cancellationToken);
156
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
157
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableIntSumAggregationOperator.cs (2)
113
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
114
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (2)
122
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
123
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableLongMinMaxAggregationOperator.cs (4)
143
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
144
CancellationState
.ThrowIfCanceled(m_cancellationToken);
157
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
158
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Inlined\NullableLongSumAggregationOperator.cs (2)
114
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
115
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\PartitionedStreamMerger.cs (2)
31
private
CancellationState
m_cancellationState;
49
CancellationState
cancellationState, int queryId)
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (3)
129
if ((m_moveNextIteration &
CancellationState
.POLL_INTERVAL) == 0)
131
CancellationState
.ThrowWithStandardMessageIfCanceled(
165
CancellationState
.ThrowWithStandardMessageIfCanceled(m_querySettings.CancellationState.ExternalCancellationToken);
System\Linq\Parallel\QueryOperators\QuerySettings.cs (2)
36
private
CancellationState
m_cancellationState;
41
internal
CancellationState
CancellationState
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (2)
209
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
210
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (2)
195
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
196
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (4)
163
if ((m_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
164
CancellationState
.ThrowIfCanceled(m_cancellationToken);
242
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
243
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (3)
134
CancellationState
cancelState = SpecifiedQuerySettings.CancellationState;
206
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
207
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\FirstQueryOperator.cs (2)
182
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
183
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\ForAllOperator.cs (2)
166
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
167
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (8)
338
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
339
CancellationState
.ThrowIfCanceled(m_cancellationToken);
402
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
403
CancellationState
.ThrowIfCanceled(m_cancellationToken);
571
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
572
CancellationState
.ThrowIfCanceled(m_cancellationToken);
647
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
648
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\IndexedWhereQueryOperator.cs (2)
180
if ((m_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
181
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\LastQueryOperator.cs (2)
179
if ((loopCount &
CancellationState
.POLL_INTERVAL) == 0)
180
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (2)
146
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
147
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (4)
287
if ((m_mutables.m_lhsCount++ &
CancellationState
.POLL_INTERVAL) == 0)
288
CancellationState
.ThrowIfCanceled(m_cancellationToken);
417
if ((m_mutables.m_lhsCount++ &
CancellationState
.POLL_INTERVAL) == 0)
418
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (2)
213
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
214
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (2)
277
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
278
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\QueryOperators\Unary\WhereQueryOperator.cs (2)
145
if ((m_outputLoopCount.Value++ &
CancellationState
.POLL_INTERVAL) == 0)
146
CancellationState
.ThrowIfCanceled(m_cancellationToken);
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (4)
33
private
CancellationState
m_cancellationState; // The cancellation state.
41
internal QueryTaskGroupState(
CancellationState
cancellationState, int queryId)
60
internal
CancellationState
CancellationState
159
CancellationState
.ThrowWithStandardMessageIfCanceled(m_cancellationState.ExternalCancellationToken); // Case #2
System\Linq\Parallel\Utils\CancellableEnumerable.cs (2)
35
if ((count++ &
CancellationState
.POLL_INTERVAL) == 0)
36
CancellationState
.ThrowIfCanceled(token);
System\Linq\Parallel\Utils\ExceptionAggregator.cs (6)
33
internal static IEnumerable<TElement> WrapEnumerable<TElement>(IEnumerable<TElement> source,
CancellationState
cancellationState)
70
CancellationState
cancellationState)
114
internal static void ThrowOCEorAggregateException(Exception ex,
CancellationState
cancellationState)
118
CancellationState
.ThrowWithStandardMessageIfCanceled(
136
internal static Func<T, U> WrapFunc<T, U>(Func<T, U> f,
CancellationState
cancellationState)
160
private static bool ThrowAnOCE(Exception ex,
CancellationState
cancellationState)
System\Linq\Parallel\Utils\Sorting.cs (8)
247
if ((i++ &
CancellationState
.POLL_INTERVAL) == 0)
248
CancellationState
.ThrowIfCanceled(cancelToken);
442
if ((i &
CancellationState
.POLL_INTERVAL) == 0)
443
CancellationState
.ThrowIfCanceled(cancelToken);
515
if ((i &
CancellationState
.POLL_INTERVAL) == 0)
516
CancellationState
.ThrowIfCanceled(cancelToken);
590
if (right - left >
CancellationState
.POLL_INTERVAL)
591
CancellationState
.ThrowIfCanceled(cancelToken);
System\Linq\ParallelEnumerable.cs (1)
4454
private static void DisposeEnumerator<TSource>(IEnumerator<TSource> e,
CancellationState
cancelState)