641 references to Cancel
AnalyzerRunner (1)
Program.cs (1)
47cts.Cancel();
ApiExplorerWebSite (1)
Controllers\ApiExplorerReloadableController.cs (1)
19changeToken.TokenSource.Cancel();
Aspire.Cli.Tests (2)
Commands\RunCommandTests.cs (2)
227cts.Cancel(); 281cts.Cancel();
Aspire.Dashboard (16)
Components\Controls\ApplicationName.razor.cs (1)
58_disposalCts?.Cancel();
Components\Controls\Chart\ChartBase.cs (1)
537_cts.Cancel();
Components\Controls\SpanDetails.razor.cs (1)
152_cts.Cancel();
Components\Dialogs\ExemplarsDialog.razor.cs (1)
79_cts.Cancel();
Components\Interactions\InteractionsProvider.cs (1)
523_cts.Cancel();
Components\Pages\ConsoleLogs.razor.cs (2)
41public void Cancel() => _cts.Cancel(); 735_resourceSubscriptionCts.Cancel();
Components\Pages\Resources.razor.cs (1)
870_watchTaskCancellationTokenSource.Cancel();
Model\MetricsHelpers.cs (2)
32using var registration = cancellationToken.Register(cts.Cancel); 69cts.Cancel();
Model\ResourceOutgoingPeerResolver.cs (1)
210_watchContainersTokenSource.Cancel();
ServiceClient\DashboardClient.cs (4)
97_cts.Cancel(); 463cts.Cancel(); 502cts.Cancel(); 760_cts.Cancel();
Utils\CallbackThrottler.cs (1)
106_cts.Cancel();
Aspire.Dashboard.Tests (5)
ChannelExtensionsTests.cs (3)
30cts.Cancel(); 54cts.Cancel(); 141cts.Cancel();
Model\DashboardClientTests.cs (2)
62cts.Cancel(); 173cts.Cancel();
Aspire.Hosting (17)
ApplicationModel\ResourceLoggerService.cs (1)
527_logStreamCts.Cancel();
ApplicationModel\ResourceNotificationService.cs (1)
730_disposing.Cancel();
Backchannel\BackchannelLoggerProvider.cs (1)
57_backgroundChannelRegistrationCts.Cancel();
Dashboard\DashboardLifecycleHook.cs (1)
80_dashboardLogsCts?.Cancel();
Dashboard\DashboardService.cs (2)
155cts.Cancel(); 170cts.Cancel();
Dashboard\DashboardServiceData.cs (1)
91_cts.Cancel();
Dcp\DcpExecutor.cs (5)
145_shutdownCancellation.Cancel(); 161_shutdownCancellation.Cancel(); 170cancellation.Cancel(); 286logStream.Cancellation.Cancel(); 359logStream.Cancellation.Cancel();
Dcp\DcpHost.cs (1)
123_shutdownCts.Cancel();
Health\ResourceHealthCheckService.cs (1)
329_cts.Cancel();
Orchestrator\ApplicationOrchestrator.cs (2)
105cts.Cancel(); 351_shutdownCancellation.Cancel();
Publishing\PublishingActivityProgressReporter.cs (1)
353_cancellationTokenSource.Cancel();
Aspire.Hosting.Azure.Tests (1)
DefaultUserPrincipalProviderTests.cs (1)
72cts.Cancel();
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
491_disposingCts.Cancel();
Aspire.Hosting.Testing.Tests (5)
ResourceLoggerForwarderServiceTests.cs (4)
150_startedCts.Cancel(); 160_startedCts.Cancel(); 165_stoppingCts.Cancel(); 166_stoppedCts.Cancel();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
169cancellationTokenSource.Cancel();
Aspire.Hosting.Tests (13)
Dcp\DcpExecutorTests.cs (2)
633watchCts.Cancel(); 1221tokenSource.Cancel();
InteractionServiceTests.cs (1)
56cts.Cancel();
ResourceNotificationTests.cs (3)
273cts.Cancel(); 305cts.Cancel(); 459_stoppingCts.Cancel();
Utils\LoggerNotificationExtensions.cs (1)
169cancellationTokenSource.Cancel();
WithHttpCommandTests.cs (2)
421watchCts.Cancel(); 492watchCts.Cancel();
WithUrlsTests.cs (4)
352cts.Cancel(); 388cts.Cancel(); 559cts.Cancel(); 601cts.Cancel();
Aspire.Playground.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
169cancellationTokenSource.Cancel();
ClientSample (2)
HubSample.cs (2)
64closedTokenSource.Cancel(); 74closedTokenSource.Cancel();
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
324serverCts.Cancel();
CustomResources.AppHost (1)
TestResource.cs (1)
76_tokenSource.Cancel();
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (1)
171cts.Cancel();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
866((CancellationTokenSource)state).Cancel();
GenerateDocumentationAndConfigFiles (4)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
HelixTestRunner (1)
ProcessUtil.cs (1)
194cancel.Cancel();
HtmlGenerationWebSite (1)
SignalTokenProviderService.cs (1)
31changeTokenInfo.TokenSource.Cancel();
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
51_stopTokenSource.Cancel();
HttpStress (2)
Program.cs (2)
220cts.Cancel(); 308cts.Cancel();
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
51_stopTokenSource.Cancel();
IIS.LongTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
51_stopTokenSource.Cancel();
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
51_stopTokenSource.Cancel();
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
51_stopTokenSource.Cancel();
IIS.Tests (2)
ClientDisconnectTests.cs (2)
173cancellationTokenSource.Cancel(); 212cancellationTokenSource.Cancel();
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
51_stopTokenSource.Cancel();
InMemory.FunctionalTests (9)
Http2\Http2StreamTests.cs (1)
3852cts.Cancel();
KeepAliveTimeoutTests.cs (2)
163cts.Cancel(); 238cts.Cancel();
RequestTests.cs (1)
166cts.Cancel();
ResponseTests.cs (1)
204cts.Cancel();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
135MultiplexedConnectionContext.ConnectionClosingCts.Cancel(); 1051ConnectionClosedCts.Cancel(); 1090ConnectionClosingCts.Cancel();
TestTransport\InMemoryTransportConnection.cs (1)
73state._connectionClosedTokenSource.Cancel();
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
1014cts.Cancel();
IntegrationTestsWebsite (1)
Infrastructure\DynamicEndpointDataSource.cs (1)
60localCts.Cancel();
Interop.FunctionalTests (2)
Http3\Http3RequestTests.cs (1)
510cts.Cancel();
HttpClientHttp2InteropTests.cs (1)
934requestCancellation.Cancel();
InteropClient (2)
InteropClient.cs (2)
492cts.Cancel(); 516cts.Cancel();
Metrics (7)
Program.cs (1)
27tokenSource.Cancel();
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Metrics.Legacy (7)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\RoslynAnalyzers\Tools\Metrics\Program.cs (1)
27tokenSource.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Microsoft.AspNetCore.Components (3)
NavigationManager.cs (2)
358_locationChangingCts?.Cancel(); 470cts.Cancel();
Routing\Router.cs (1)
339_onNavigateCts?.Cancel();
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\RazorComponentEndpointDataSource.cs (1)
167oldCancellationTokenSource?.Cancel();
DependencyInjection\HotReloadService.cs (1)
40current.Cancel();
Microsoft.AspNetCore.Components.QuickGrid (1)
QuickGrid.razor.cs (1)
306_pendingDataLoadCancellationTokenSource?.Cancel();
Microsoft.AspNetCore.Components.Server (2)
Circuits\RevalidatingServerAuthenticationStateProvider.cs (2)
37oldCancellationTokenSource.Cancel(); 111_loopCancellationTokenSource?.Cancel();
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\RemoteJSDataStreamTest.cs (3)
304cts.Cancel(); 335cts1.Cancel(); 339cts2.Cancel();
Microsoft.AspNetCore.Components.Tests (2)
ComponentBaseTest.cs (1)
359cts.Cancel();
RendererTest.cs (1)
4113cancellationTokenSource.Cancel();
Microsoft.AspNetCore.Components.Web (4)
Forms\InputFile\BrowserFileStream.cs (2)
115_openReadStreamCts.Cancel(); 116_copyFileDataCts?.Cancel();
Virtualization\Virtualize.cs (2)
395_refreshCts?.Cancel(); 467_refreshCts?.Cancel();
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
Hosting\WebAssemblyHostTest.cs (3)
31cts.Cancel(); 52cts.Cancel(); 78cts.Cancel();
Microsoft.AspNetCore.Connections.Abstractions (1)
DefaultConnectionContext.cs (1)
101ThreadPool.UnsafeQueueUserWorkItem(cts => ((CancellationTokenSource)cts!).Cancel(), _connectionClosedTokenSource);
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\XmlKeyManager.cs (1)
487Interlocked.Exchange(ref _cacheExpirationTokenSource, new CancellationTokenSource())?.Cancel();
Microsoft.AspNetCore.DataProtection.Tests (13)
KeyManagement\CacheableKeyRingTests.cs (1)
28cts.Cancel();
KeyManagement\KeyRingProviderTests.cs (12)
50expirationCts.Cancel(); 93expirationCts.Cancel(); 141expirationCts1.Cancel(); 143expirationCts2.Cancel(); 230expirationCts1.Cancel(); 232expirationCts2.Cancel(); 314expirationCts1.Cancel(); 316expirationCts2.Cancel(); 354expirationCts.Cancel(); 392expirationCts.Cancel(); 743cts.Cancel(); // invalidate the key ring 839cts.Cancel(); // Invalidate (but don't clear) the cached value
Microsoft.AspNetCore.Hosting (4)
Internal\ApplicationLifetime.cs (3)
61_stoppingSource.Cancel(); 79_startedSource.Cancel(); 96_stoppedSource.Cancel();
Internal\WebHostLifetime.cs (1)
64_cts.Cancel();
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostTests.cs (2)
180cts.Cancel(); 301cts.Cancel();
Microsoft.AspNetCore.Http.Connections (9)
Internal\HttpConnectionContext.cs (7)
215ThreadPool.UnsafeQueueUserWorkItem(cts => ((CancellationTokenSource)cts!).Cancel(), _connectionClosedTokenSource); 308Cancellation?.Cancel(); 360ThreadPool.UnsafeQueueUserWorkItem(cts => ((CancellationTokenSource)cts!).Cancel(), _connectionClosedTokenSource); 370ThreadPool.UnsafeQueueUserWorkItem(cts => ((CancellationTokenSource)cts!).Cancel(), _connectionClosedTokenSource); 552cts?.Cancel(); 671_sendCts!.Cancel(); 694ThreadPool.UnsafeQueueUserWorkItem(static cts => ((CancellationTokenSource)cts!).Cancel(), _connectionCloseRequested);
Internal\Transports\WebSocketsServerTransport.cs (2)
97delayCts.Cancel(); 125delayCts.Cancel();
Microsoft.AspNetCore.Http.Connections.Client (3)
Internal\LongPollingTransport.cs (1)
101_transportCts.Cancel();
Internal\ServerSentEventsTransport.cs (2)
105_inputCts.Cancel(); 117_transportCts.Cancel();
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (3)
496cts.Cancel(); 553cts.Cancel(); 2913_cts.Cancel();
Microsoft.AspNetCore.Http.Extensions.Tests (7)
HttpRequestJsonExtensionsTests.cs (1)
147cts.Cancel();
HttpResponseJsonExtensionsTests.cs (5)
135cts.Cancel(); 334cts.Cancel(); 368cts.Cancel(); 402cts.Cancel(); 436cts.Cancel();
RequestDelegateFactoryTests.cs (1)
3757_requestAbortedCts.Cancel();
Microsoft.AspNetCore.Http.Results.Tests (1)
ServerSentEventsResultTests.cs (1)
239cts.Cancel();
Microsoft.AspNetCore.Http.Tests (1)
Timeouts\RequestTimeoutsMiddlewareTests.cs (1)
371cts.Cancel();
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
297_cancellationTokenSource.Cancel();
Microsoft.AspNetCore.InternalTesting.Tests (4)
TaskExtensionsTest.cs (4)
18cts.Cancel(); 38cts.Cancel(); 46cts.Cancel(); 54cts.Cancel();
Microsoft.AspNetCore.Mvc (1)
HotReloadService.cs (1)
79current.Cancel();
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (1)
168oldCancellationTokenSource?.Cancel();
Routing\ActionEndpointDataSourceBase.cs (1)
138oldCancellationTokenSource?.Cancel();
Microsoft.AspNetCore.Mvc.Core.Test (8)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
150cts.Cancel();
Infrastructure\AsyncEnumerableReaderTest.cs (1)
216cts.Cancel();
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (2)
119changeProvider.TokenSource.Cancel(); 141changeProvider.TokenSource.Cancel();
Infrastructure\JsonResultExecutorTestBase.cs (3)
385cts.Cancel(); 419cts.Cancel(); 468cts.Cancel();
Routing\ActionEndpointDataSourceBaseTest.cs (1)
111cts.Cancel();
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
747cts.Cancel();
XmlSerializerOutputFormatterTest.cs (1)
529cts.Cancel();
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ModelBindingTestHelper.cs (1)
216_cts.Cancel();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (7)
NewtonsoftJsonOutputFormatterTest.cs (2)
468cts.Cancel(); 546cts.Cancel();
NewtonsoftJsonResultExecutorTest.cs (1)
51cts.Cancel();
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (1)
216cts.Cancel();
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (3)
385cts.Cancel(); 419cts.Cancel(); 468cts.Cancel();
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorViewEngineTest.cs (3)
195cancellationTokenSource.Cancel(); 935cancellationTokenSource.Cancel(); 1049cancellationTokenSource.Cancel();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
111cts.Cancel();
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
138tokenSource.Cancel();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
CacheTagHelperTest.cs (1)
529tokenSource.Cancel();
Microsoft.AspNetCore.OpenApi.Tests (2)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (1)
294cts.Cancel();
Transformers\SchemaTransformerTests.cs (1)
132cts.Cancel();
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
362_disposalCancellation.Cancel();
Microsoft.AspNetCore.Routing (1)
CompositeEndpointDataSource.cs (1)
239oldTokenSource?.Cancel();
Microsoft.AspNetCore.Routing.Tests (1)
TestObjects\DynamicEndpointDataSource.cs (1)
43oldTokenSource.Cancel();
Microsoft.AspNetCore.Server.HttpSys (4)
NativeInterop\DisconnectListener.cs (3)
75cts.Cancel(); 104cts.Cancel(); 112cts.Cancel();
RequestProcessing\RequestContext.cs (1)
159_requestAbortSource.Cancel();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (20)
Listener\RequestBodyTests.cs (2)
57cts.Cancel(); 134cts.Cancel();
Listener\ResponseBodyTests.cs (8)
155cts.Cancel(); 175cts.Cancel(); 199cts.Cancel(); 221cts.Cancel(); 247cts.Cancel(); 283cts.Cancel(); 318cts.Cancel(); 345cts.Cancel();
ResponseSendFileTests.cs (6)
377cts.Cancel(); 405cts.Cancel(); 435cts.Cancel(); 462cts.Cancel(); 522cts.Cancel(); 565cts.Cancel();
ServerTests.cs (3)
474cts.Cancel(); 511cts.Cancel(); 548cts.Cancel();
src\Shared\Http2cat\Http2CatHostedService.cs (1)
51_stopTokenSource.Cancel();
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IO.cs (1)
279localAbortCts?.Cancel();
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\ApplicationDeployer.cs (1)
169hostShutdownSource.Cancel();
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http\HttpProtocol.cs (1)
483localAbortCts?.Cancel();
Internal\Http3\Http3Connection.cs (1)
127_acceptStreamsCts.Cancel();
Internal\Infrastructure\KestrelConnection.cs (1)
156_connectionClosingCts.Cancel();
Internal\KestrelServerImpl.cs (1)
255_stopCts.Cancel();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
TlsListenerTests.cs (2)
93cts.Cancel(); 119cts.Cancel();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
135MultiplexedConnectionContext.ConnectionClosingCts.Cancel(); 1051ConnectionClosedCts.Cancel(); 1090ConnectionClosingCts.Cancel();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Internal\NamedPipeConnection.cs (1)
263_connectionClosedTokenSource.Cancel();
Internal\NamedPipeConnectionListener.cs (1)
169_listeningTokenSource.Cancel();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicConnectionContext.cs (1)
202_connectionClosedTokenSource.Cancel();
Internal\QuicStreamContext.cs (1)
356_streamClosedTokenSource.Cancel();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionContextTests.cs (1)
94cts.Cancel();
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketConnection.cs (1)
413_connectionClosedTokenSource.Cancel();
Microsoft.AspNetCore.Session.Tests (3)
SessionTests.cs (3)
803cts.Cancel(); 984cts.Cancel(); 1048cts.Cancel();
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (2)
566_state.StopCts.Cancel(); 1714uploadStreamSource.Cancel();
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (1)
89((CancellationTokenSource)ctsState!).Cancel();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (7)
HubConnectionTests.cs (6)
573cts.Cancel(); 620cts.Cancel(); 903cts.Cancel(); 946cts.Cancel(); 984cts.Cancel(); 1019cts.Cancel();
HubConnectionTests.Tracing.cs (1)
413cts.Cancel();
Microsoft.AspNetCore.SignalR.Client.Tests (10)
HttpConnectionTests.ConnectionLifecycle.cs (3)
418cts.Cancel(); 440cts.Cancel(); 520cts.Cancel();
HubConnectionTests.ConnectionLifecycle.cs (1)
591cts.Cancel();
HubConnectionTests.cs (5)
176cts.Cancel(); 235cts.Cancel(); 307cts.Cancel(); 334cts.Cancel(); 560cts.Cancel();
TestHttpMessageHandler.cs (1)
125deleteCts.Cancel();
Microsoft.AspNetCore.SignalR.Core (3)
HubConnectionContext.cs (1)
733connection._connectionAbortedTokenSource.Cancel();
Internal\DefaultHubDispatcher.cs (1)
189cts.Cancel();
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (1)
89((CancellationTokenSource)ctsState!).Cancel();
Microsoft.AspNetCore.SignalR.Specification.Tests (4)
HubLifetimeManagerTestBase.cs (1)
360cts.Cancel();
Internal\TaskExtensions.cs (2)
27cts.Cancel(); 51cts.Cancel();
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
312_cts.Cancel();
Microsoft.AspNetCore.SignalR.Tests (13)
CancellationDisposable.cs (1)
20_cts.Cancel();
DefaultHubLifetimeManagerTests.cs (9)
37cts.Cancel(); 67cts.Cancel(); 91cts.Cancel(); 113cts.Cancel(); 136cts.Cancel(); 163cts.Cancel(); 188cts.Cancel(); 213cts.Cancel(); 243cts.Cancel();
HubConnectionHandlerTests.ClientResult.cs (2)
382cts.Cancel(); 427cts.Cancel();
HubConnectionHandlerTests.cs (1)
2269_cts.Cancel();
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
312_cts.Cancel();
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
SpaServicesExtensionsTests.cs (2)
96_applicationStoppingSource.Cancel(); 97_applicationStoppedSource.Cancel();
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointDataSource.cs (1)
116oldCancellationTokenSource?.Cancel();
Microsoft.AspNetCore.TestHost (2)
RequestLifetimeFeature.cs (2)
23_cancellationTokenSource.Cancel(); 29_cancellationTokenSource.Cancel();
Microsoft.AspNetCore.TestHost.Tests (4)
ClientHandlerTests.cs (1)
480cts.Cancel();
HttpContextBuilderTests.cs (2)
234cts.Cancel(); 261cts.Cancel();
TestClientTests.cs (1)
731tokenSource.Cancel();
Microsoft.AspNetCore.WebSockets.ConformanceTests (2)
Autobahn\AutobahnTester.cs (1)
51pingCts.Cancel();
AutobahnTests.cs (1)
77cts.Cancel();
Microsoft.AspNetCore.WebSockets.Tests (1)
WebSocketMiddlewareTests.cs (1)
635cts.Cancel();
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (4)
2159_executionCancellationTokenSource?.Cancel(); 2549_executionCancellationTokenSource?.Cancel(); 3237_executionCancellationTokenSource.Cancel(); 3353_executionCancellationTokenSource?.Cancel();
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
813context._packetQueueDrainDelayCancellation.Cancel();
BackEnd\Components\Logging\LoggingService.cs (2)
1412_loggingEventProcessingCancellation?.Cancel(); 1435_loggingEventProcessingCancellation.Cancel();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
279_cancellationTokenSource.Cancel();
Logging\TerminalLogger\TerminalLogger.cs (2)
410_cts.Cancel(); 444_cts.Cancel();
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TargetBuilder_Tests.cs (1)
1404source.Cancel();
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
618_sharedCompileCts?.Cancel();
src\Compilers\Shared\BuildServerConnection.cs (1)
324serverCts.Cancel();
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
618_sharedCompileCts?.Cancel();
src\Compilers\Shared\BuildServerConnection.cs (1)
324serverCts.Cancel();
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\Node\OutOfProcRarNode.cs (1)
114linkedCts.Cancel();
Copy.cs (1)
195_cancellationTokenSource.Cancel();
DownloadFile.cs (1)
78_cancellationTokenSource.Cancel();
FileIO\GetFileHash.cs (1)
125_cancellationTokenSource.Cancel();
FileIO\VerifyFileHash.cs (1)
78_cancellationTokenSource.Cancel();
Unzip.cs (1)
81_cancellationToken.Cancel();
Microsoft.Build.Tasks.UnitTests (1)
DownloadFile_Tests.cs (1)
256timeout.Cancel();
Microsoft.CodeAnalysis (1)
CommandLine\CommonCompiler.cs (1)
983analyzerCts.Cancel();
Microsoft.CodeAnalysis.Analyzers (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
80_cancellationTokenSource.Cancel();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (1)
300OnDefinitionFoundImpl = _ => cancellationSource.Cancel(),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
SourceGeneration\GeneratorDriverTests.cs (2)
748onExecute: (e) => { cts.Cancel(); } 2596var step1 = ctx.CompilationProvider.Select((c, ct) => { generatorCancelled = true; cts.Cancel(); return c; });
SourceGeneration\SyntaxAwareGeneratorTests.cs (2)
1991var step1 = ctx.SyntaxProvider.CreateSyntaxProvider((c, ct) => { filterCalled++; if (c is AssignmentExpressionSyntax) cts.Cancel(); return true; }, (a, _) => a); 2017var step1 = ctx.SyntaxProvider.CreateSyntaxProvider((c, ct) => { generatorCancelled = true; cts.Cancel(); return true; }, (a, _) => a);
Microsoft.CodeAnalysis.EditorFeatures (23)
BackgroundWorkIndicator\BackgroundWorkIndicatorContext.cs (1)
88_cancellationTokenSource.Cancel();
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
173_disposalCancellationSource.Cancel();
EditAndContinue\ActiveStatementTrackingService.cs (1)
135_cancellationSource.Cancel();
GoOrFind\AbstractGoOrFindNavigationService.cs (2)
97_cancellationTokenSource.Cancel(); 239presenterCancellationToken.Register(() => cancellationTokenSource.Cancel());
InlineRename\InlineRenameSession.cs (3)
526_conflictResolutionTaskCancellationSource.Cancel(); 686_cancellationTokenSource.Cancel(); 687_conflictResolutionTaskCancellationSource.Cancel();
InlineRename\UI\SmartRename\SmartRenameViewModel.cs (5)
192_cancellationTokenSource.Cancel(); 314_cancellationTokenSource.Cancel(); 334_cancellationTokenSource.Cancel(); 354_cancellationTokenSource.Cancel(); 376_cancellationTokenSource.Cancel();
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
185cancellationTokenSource.Cancel();
IntelliSense\ModelComputation.cs (1)
93_stopTokenSource.Cancel();
Interactive\InteractiveSession.cs (1)
107_shutdownCancellationSource.Cancel();
NavigateTo\NavigateToItemProvider.cs (1)
76_cancellationTokenSource.Cancel();
NavigationBar\NavigationBarController.cs (1)
195_cancellationTokenSource.Cancel();
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
259_cancellationTokenSource.Cancel();
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (1)
158_cancellationTokenSource.Cancel();
Shared\Utilities\ThreadingContext.cs (1)
77_disposalTokenSource.Cancel();
Suggestions\SuggestedActionsSource.cs (1)
181linkedTokenSource.Cancel();
Tagging\AbstractAsynchronousTaggerProvider.TagSource.cs (1)
239_disposalTokenSource.Cancel();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Utilities\AsynchronousOperationListenerTests.cs (1)
37_tokenSource.Cancel();
Microsoft.CodeAnalysis.ExternalAccess.Copilot (2)
Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (2)
42cancellationSource.Cancel(); 52cancellationSource.Cancel();
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Cohost\RazorStartupServiceFactory.cs (1)
43_disposalTokenSource.Cancel();
Microsoft.CodeAnalysis.Features (7)
AddImport\AbstractAddImportFeatureService.cs (1)
365linkedTokenSource.Cancel();
CodeFixes\Service\CodeFixService.cs (1)
150linkedTokenSource.Cancel();
CodeLens\CodeLensFindReferenceProgress.cs (2)
104_aggregateCancellationTokenSource.Cancel(); 139_aggregateCancellationTokenSource.Cancel();
EditAndContinue\DebuggingSession.cs (1)
167_cancellationSource.Cancel();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (1)
184source.Cancel();
SemanticSearch\QueryExecutionContext.cs (1)
199symbolEnumerationCancellationSource.Cancel();
Microsoft.CodeAnalysis.InteractiveHost (6)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (2)
45_cancellationSource.Cancel(); 189_cancellationSource.Cancel();
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
Microsoft.CodeAnalysis.LanguageServer (2)
BrokeredServices\ServiceBrokerFactory.cs (1)
92_cancellationTokenSource.Cancel();
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
240_cancellationTokenSource.Cancel();
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\AbstractRefreshQueue.cs (1)
137_disposalTokenSource.Cancel();
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
149_disposalTokenSource.Cancel();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
359concurrentlyExecutingTasksArray[i].Value.Cancel(); 442_cancelSource.Cancel();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.InFlightSolution.cs (1)
165_cancellationTokenSource_doNotAccessDirectly.Cancel();
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (1)
72_cancellationTokenSource.Cancel();
Microsoft.CodeAnalysis.Remote.Workspaces (1)
CancellationTokenSourceExtensions.cs (1)
29((CancellationTokenSource)state!).Cancel();
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CommonDiagnosticAnalyzers.cs (3)
2235CancellationTokenSource.Cancel(); 2687_cancellationTokenSource.Cancel(); 2956_cancellationTokenSource.Cancel();
Microsoft.CodeAnalysis.Threading.Package (3)
CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
Microsoft.CodeAnalysis.UnitTests (3)
AsyncQueueTests.cs (3)
169cts.Cancel(); 181cts.Cancel(); 200cts.Cancel();
Microsoft.CodeAnalysis.Workspaces (9)
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
58=> _tokenSource.Cancel();
Remote\IRemoteKeepAliveService.cs (1)
79_cancellationTokenSource.Cancel();
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1383_asynchronousFileChangeProcessingCancellationTokenSource.Cancel();
Workspace\Workspace.cs (2)
733_updateSourceGeneratorsQueueTokenSource.Cancel(); 734_workQueueTokenSource.Cancel();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Rpc\RpcClient.cs (1)
118_shutdownTokenSource.Cancel();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\RpcServer.cs (1)
184_shutdownTokenSource.Cancel();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
RpcTests.cs (1)
210tokenSource.Cancel();
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
184_shutdownTokenSource.Cancel();
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
UtilityTest\AsyncLazyTests.cs (4)
103requestCancellationTokenSource.Cancel(); 180cancellationTokenSource.Cancel(); 237requestCancellationTokenSource.Cancel(); 337cancellationTokenSource.Cancel();
UtilityTest\CancellationSeriesTests.cs (4)
66cts.Cancel(); 79cts.Cancel(); 96cts.Cancel(); 111cts.Cancel();
UtilityTest\SpecializedTasksTests.cs (13)
104cts.Cancel(); 149cts.Cancel(); 181cts.Cancel(); 205cts.Cancel(); 238unexpectedCts.Cancel(); 265unexpectedCts.Cancel(); 302cts.Cancel(); 305unexpectedCts.Cancel(); 329cts.Cancel(); 332unexpectedCts.Cancel(); 440cts.Cancel(); 465cts.Cancel(); 490cts.Cancel();
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
RequestExecutionQueue.cs (2)
359concurrentlyExecutingTasksArray[i].Value.Cancel(); 442_cancelSource.Cancel();
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
43public void Cancel() => _cancellationSource.Cancel();
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\UploadToAzure.cs (1)
60TokenSource.Cancel();
Microsoft.DotNet.Build.Tasks.Installers (1)
src\ExecWithRetries.cs (1)
59_cancelTokenSource.Cancel();
Microsoft.DotNet.Helix.Sdk (1)
HelixTask.cs (1)
52_cancel.Cancel();
Microsoft.DotNet.XUnitExtensions (3)
src\Microsoft.DotNet.XUnitExtensions.Shared\XunitParallelTheoryTestCaseRunner.cs (3)
162CancellationTokenSource.Cancel(); 164CancellationTokenSource.Cancel(); 166CancellationTokenSource.Cancel();
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAISpeechToTextClientTests.cs (2)
114cancellationTokenSource.Cancel(); 128cancellationTokenSource.Cancel();
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.StampedeState.cs (1)
91_sharedCancellation?.Cancel();
Microsoft.Extensions.Caching.Hybrid.Tests (2)
StampedeTests.cs (2)
215cancel.Cancel(); 295cancels[i].Cancel();
Microsoft.Extensions.Configuration (1)
ConfigurationReloadToken.cs (1)
50public void OnReload() => _cts.Cancel();
Microsoft.Extensions.Diagnostics.HealthChecks (2)
HealthCheckPublisherHostedService.cs (2)
80_stopping.Cancel(); 140_runTokenSource!.Cancel();
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (3)
MockHostApplicationLifetime.cs (3)
31_started.Cancel(); 36_stopping.Cancel(); 41_stopped.Cancel();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
DefaultHealthCheckServiceTest.cs (1)
267cancel.Cancel();
Microsoft.Extensions.Diagnostics.Probes.Tests (2)
TcpEndpointProbesServiceTests.cs (2)
65cts.Cancel(); 91cts.Cancel();
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Metrics\MetricCollectorTests.cs (1)
288cts.Cancel();
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
25private static readonly Action<object?> _cancelTokenSource = state => ((CancellationTokenSource?)state)!.Cancel(); 493token.CancellationTokenSource!.Cancel();
Microsoft.Extensions.Hosting (3)
Internal\ApplicationLifetime.cs (3)
66_stoppingSource.Cancel(); 84_startedSource.Cancel(); 101_stoppedSource.Cancel();
Microsoft.Extensions.Hosting.Abstractions (2)
BackgroundService.cs (2)
68_stoppingCts!.Cancel(); 88_stoppingCts?.Cancel();
Microsoft.Extensions.Hosting.Testing.Tests (2)
FakeHostTests.cs (2)
91cancellationTokenSource.Cancel(); 151cancellationTokenSource.Cancel();
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpResponseBodyReader.cs (1)
75joinedTokenSource.Cancel();
Microsoft.Extensions.Http.Resilience.Tests (1)
Hedging\HedgingTests.cs (1)
65_cancellationTokenSource.Cancel();
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
167_cancellationTokenSource.Cancel();
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
396tcs?.Cancel();
Microsoft.Extensions.ML (1)
ModelReloadToken.cs (1)
47public void OnReload() => _cts.Cancel();
Microsoft.Extensions.Primitives (1)
CompositeChangeToken.cs (1)
141compositeChangeTokenState._cancellationTokenSource.Cancel();
Microsoft.Extensions.ServiceDiscovery (1)
ServiceEndpointWatcher.cs (1)
258_disposalCancellation.Cancel();
Microsoft.Extensions.ServiceDiscovery.Dns (3)
DnsServiceEndpointProviderBase.cs (2)
131_lastCollectionCancellation.Cancel(); 157_disposeCancellation.Cancel();
Resolver\DnsResolver.cs (1)
859_pendingRequestsCts.Cancel();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (2)
Resolver\CancellationTests.cs (2)
19cts.Cancel(); 35cts.Cancel();
Microsoft.Extensions.ServiceDiscovery.Tests (3)
ServiceEndpointResolverTests.cs (3)
123cts[0].Cancel(); 253cts[0].Cancel(); 269cts[0].Cancel();
Microsoft.Extensions.TimeProvider.Testing.Tests (2)
FakeTimeProviderTests.cs (2)
321cs.Cancel(); 434cts.Cancel();
Microsoft.JSInterop.Tests (5)
Infrastructure\DotNetDispatcherTest.cs (2)
329cts.Cancel(); 392cts.Cancel();
JSRuntimeTest.cs (3)
79cts.Cancel(); 90cts.Cancel(); 96cts.Cancel();
Microsoft.Maui (1)
ImageSources\ImageSourceServiceResultManager.cs (1)
40 _sourceCancellation?.Cancel();
Microsoft.Maui.Controls (5)
ImageSource.cs (2)
42 _cancellationTokenSource.Cancel(); 61 _cancellationTokenSource.Cancel();
StreamImageSource.cs (1)
39 userToken.Register(CancellationTokenSource.Cancel);
UriImageSource.cs (2)
60 userToken.Register(CancellationTokenSource.Cancel); 133 CancellationTokenSource?.Cancel();
Microsoft.Maui.Resizetizer (1)
AsyncTask.cs (1)
337 cts.Cancel();
Microsoft.ML.AutoML (2)
AutoMLExperiment\AutoMLExperiment.cs (1)
258trialCancellationTokenSource.Cancel();
AutoMLExperiment\IPerformanceMonitor.cs (1)
153trialCancellationTokenSource.Cancel();
Microsoft.ML.AutoML.Tests (3)
AutoMLExperimentTests.cs (1)
53cts.Cancel();
StopTrainingManagerTests.cs (2)
39cts.Cancel(); 103cts.Cancel();
Microsoft.ML.Core (2)
Utilities\ResourceManagerUtils.cs (1)
168downloadCancel.Cancel();
Utilities\ThreadUtils.cs (1)
226_ctSource.Cancel();
Microsoft.ML.Maml (1)
MAML.cs (1)
72progressCancel.Cancel();
Microsoft.ML.Sweeper (1)
AsyncSweeper.cs (1)
297_cts.Cancel();
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
1072tokenSource.Cancel()
Microsoft.VisualStudio.IntegrationTest.Setup (1)
AsyncCompletionTracker.cs (1)
74source.Cancel();
Microsoft.VisualStudio.LanguageServices (9)
CallHierarchy\Finders\AbstractCallFinder.cs (1)
54=> _cancellationSource.Cancel();
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
293CancellationTokenSource.Cancel();
KeybindingReset\KeybindingResetDetector.cs (2)
162_cancellationTokenSource.Cancel(); 433_cancellationTokenSource.Cancel();
PdbSourceDocument\PdbSourceDocumentOutputWindowLogger.cs (1)
118_cancellationTokenSource.Cancel();
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
151_disposalCancellationSource.Cancel();
PullMemberUp\VisualStudioPullMemberUpService.cs (1)
69cancellationTokenSource.Cancel();
Remote\VisualStudioWorkspaceServiceHubConnector.cs (1)
55_disposalCancellationSource.Cancel();
Workspace\SourceGeneratedFileManager.cs (1)
328_cancellationTokenSource.Cancel();
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
ReferenceCodeLensProvider.cs (1)
62_cancellationTokenSource.Cancel();
Microsoft.VisualStudio.LanguageServices.CSharp (3)
SemanticSearch\SemanticSearchToolWindowImpl.cs (3)
362pendingExecutionCancellationSource?.Cancel(); 380Interlocked.Exchange(ref _pendingExecutionCancellationSource, cancellationSource)?.Cancel(); 385presenterCancellationToken.Register(() => cancellationSource?.Cancel());
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
SymbolSearch\SymbolSearchUpdateEngineTests.vb (1)
34AddressOf cancellationTokenSource.Cancel)
MSBuild (1)
XMake.cs (1)
1176s_buildCancellationSource.Cancel();
RazorBuildWebSite (2)
UpdateableFileProvider.cs (2)
44old.TokenSource.Cancel(); 52oldToken.Cancel();
Replay (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
324serverCts.Cancel();
Roslyn.Diagnostics.Analyzers (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\ForceLowMemoryMode.cs (1)
74_cancellationTokenSource.Cancel();
Roslyn.VisualStudio.Next.UnitTests (2)
Services\ServiceHubServicesTests.cs (1)
176cancellationTokenSource.Cancel();
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
130source.Cancel();
RunTests (2)
Program.cs (2)
68cts.Cancel(); 109cts.Cancel();
Shared.Tests (1)
Pools\PoolTests.cs (1)
213s.Cancel();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (1)
208cts.Cancel();
Stress.AppHost (1)
TestResource.cs (1)
94_tokenSource.Cancel();
System.Collections.Concurrent (2)
System\Collections\Concurrent\BlockingCollection.cs (2)
1478_consumersCancellationTokenSource.Cancel(); 1483_producersCancellationTokenSource.Cancel();
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\AggregationManager.cs (1)
317_cts.Cancel();
System.Diagnostics.Process (1)
System\Diagnostics\AsyncStreamReader.cs (1)
260_cts.Cancel();
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
116cts.Cancel();
System.IO.Pipelines (3)
System\IO\Pipelines\StreamPipeReader.cs (2)
162InternalTokenSource.Cancel(); 568InternalTokenSource.Cancel();
System\IO\Pipelines\StreamPipeWriter.cs (1)
286InternalTokenSource.Cancel();
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
142_internalTokenSource.Cancel();
System.Linq.Parallel (2)
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
73_topLevelCancellationTokenSource.Cancel(); // initiate internal cancellation.
System\Linq\Parallel\Scheduling\SpoolingTaskBase.cs (1)
63_groupState.CancellationState.InternalCancellationTokenSource.Cancel();
System.Net.Http (10)
System\Net\Http\HttpClient.cs (2)
683currentCts.Cancel(); 702_pendingRequestsCts.Cancel();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
932_altSvcBlocklistTimerCancellation.Cancel();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (1)
120ConnectionCancellationTokenSource.Cancel();
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (3)
423requestBodyCancellationSource?.Cancel(); 1003requestBodyCancellationSource.Cancel(); 1412cancellationToken.UnsafeRegister(static s => ((CancellationTokenSource)s!).Cancel(), _requestBodyCancellationSource);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (3)
139_requestBodyCancellationSource.Cancel(); 150CancellationTokenRegistration linkedTokenRegistration = cancellationToken.UnsafeRegister(cts => ((CancellationTokenSource)cts!).Cancel(), _requestBodyCancellationSource); 374_requestBodyCancellationSource.Cancel();
System.Net.Mail (2)
System\Net\Mail\SmtpClient.cs (2)
633currentCts.Cancel(); 767_pendingSendCts.Cancel();
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.cs (1)
683_timeoutOrCancellationSource?.Cancel();
System.Net.Quic (1)
System\Net\Quic\QuicConnection.cs (1)
687_shutdownTokenSource.Cancel();
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1028_sendRequestCts.Cancel();
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
617multipleConnectCancellation.Cancel();
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
45_abortSource.Cancel();
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
143m_dispatchTaskCancellationSource.Cancel();
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (1)
54/// calling <see cref="CancellationTokenSource.Cancel()">Cancel</see>
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (2)
18/// token may have cancellation requested by calling to the source's <see cref="Cancel()"/> method. 63/// due to a call to its <see cref="Cancel()"/> method.
System.Threading.Tasks.Dataflow (5)
Base\DataflowBlock.cs (5)
1030private static readonly Action<object?> _cancelCts = static state => ((CancellationTokenSource)state!).Cancel(); 1277_cts.Cancel(); 2022cts.Cancel(); 2039cts.Cancel(); 2315currentState.Canceler.Cancel();
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.ForEachAsync.cs (2)
553_registration = cancellationToken.UnsafeRegister(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 626Cancellation.Cancel();
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripTests.cs (1)
7315toolStripItem.MouseHover += (sender, e) => cancellationTokenSource.Cancel();
Test.Utilities (4)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
Text.Analyzers (6)
src\Dependencies\Threading\CancellationSeries.cs (3)
41_cts.Cancel(); 104priorSource.Cancel(); 128source.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
537cancellationTokenSource?.Cancel();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\RoslynParallel.NetFramework.cs (2)
441_registration = cancellationToken.Register(static o => ((ForEachAsyncState<TSource>)o!).Cancellation.Cancel(), this); 517Cancellation.Cancel();
vbc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
324serverCts.Cancel();
VBCSCompiler (5)
src\Compilers\Server\VBCSCompiler\BuildServerController.cs (1)
53Console.CancelKeyPress += (sender, e) => { cancellationTokenSource.Cancel(); };
src\Compilers\Server\VBCSCompiler\ClientConnectionHandler.cs (1)
160buildCancellationTokenSource.Cancel();
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnection.cs (1)
42DisconnectCancellationTokenSource.Cancel();
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (1)
102_cancellationTokenSource.Cancel();
src\Compilers\Shared\BuildServerConnection.cs (1)
324serverCts.Cancel();
VBCSCompiler.UnitTests (4)
BuildClientTests.cs (2)
49serverData.CancellationTokenSource.Cancel(); 152cts.Cancel();
ServerUtil.cs (2)
141CancellationTokenSource.Cancel(); 149CancellationTokenSource.Cancel();