6 writes to cancellationTokenSource
System.Data (6)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (6)
148
this.
cancellationTokenSource
= new CancellationTokenSource();
232
this.Parent.
cancellationTokenSource
= null;
271
this.Parent.
cancellationTokenSource
= null;
279
this.Parent.
cancellationTokenSource
= null;
311
this.Parent.
cancellationTokenSource
= null;
319
this.Parent.
cancellationTokenSource
= null;
5 references to cancellationTokenSource
System.Data (5)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Validation\BackgroundValidationSynchronizer.cs (5)
129
Fx.Assert(this.
cancellationTokenSource
!= null, "this.cancellationTokenSource should be constructed");
130
TValidationResult result = this.validationWork(reason, this.
cancellationTokenSource
.Token);
141
Fx.Assert(this.
cancellationTokenSource
!= null, "Cancel should be called only when the work is active, and by the time the cancellationTokenSource should not be null.");
142
Fx.Assert(this.
cancellationTokenSource
.IsCancellationRequested == false, "We should only request for cancel once.");
143
this.
cancellationTokenSource
.Cancel();