154 references to CreateLinkedTokenSource
aspire (5)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
240using var combined = CancellationTokenSource.CreateLinkedTokenSource(stoppingToken, timeout.Token);
Commands\DashboardRunCommand.cs (1)
442using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
Profiling\ProfileCaptureService.cs (2)
274using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token); 391using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
Telemetry\InternalMicrosoftDetector.cs (1)
619using var linkedSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutSource.Token);
Aspire.Dashboard (6)
ServiceClient\DashboardClient.cs (6)
847var cts = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 895var cts = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 943using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 986using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 1053using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 1108using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken);
Aspire.Dashboard.Tests (2)
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (2)
659using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cts.Token, doneCts.Token); 737using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cts.Token, doneCts.Token);
Aspire.Deployment.EndToEnd.Tests (53)
AcaCompactNamingDeploymentTests.cs (2)
28using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource( 42using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaCompactNamingUpgradeDeploymentTests.cs (1)
28using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaCustomRegistryDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaDeploymentErrorOutputTests.cs (1)
31using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaExistingRegistryDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaManagedRedisDeploymentTests.cs (1)
25using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaStarterDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcrPurgeTaskDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksAzureKubernetesEnvironmentCertManagerDeploymentTests.cs (1)
35using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs (1)
38using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs (1)
29using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksBlazorRedisDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksMultipleNodePoolsDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksPersistentVolumeDeploymentTests.cs (1)
20using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksStarterDeploymentTests.cs (1)
22using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksStarterWithRedisHelmDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksVnetInfraDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksVnetWithAzureResourcesDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksWithAzureResourcesDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksWithHelmChartDeploymentTests.cs (1)
30using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AppServicePythonDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AppServiceReactDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AppServiceStoragePrivateEndpointDeploymentTests.cs (1)
21using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureAppConfigDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureContainerRegistryDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureEventHubsDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureKeyVaultDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureLogAnalyticsDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureResourceScopeDeploymentTests.cs (1)
21using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureRoleAssignmentRunModeTests.cs (1)
34using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureServiceBusDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureStorageDeploymentTests.cs (2)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource( 34using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureStorageRunModeTests.cs (1)
22using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
FoundryHostedAgentDeploymentTests.cs (1)
25using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
FrontDoorDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
KubernetesGatewayTlsDeploymentTests.cs (1)
29using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
KubernetesHelmChartDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
NspStorageKeyVaultDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
PythonFastApiDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
RadiusAzureResourcesDeploymentTests.cs (1)
40using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
RadiusStarterDeploymentTests.cs (1)
37using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
TypeScriptAzureContainerAppJobDeploymentTests.cs (1)
21using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
TypeScriptExpressDeploymentTests.cs (1)
22using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
TypeScriptJavaScriptHostingDeploymentTests.cs (1)
21using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
TypeScriptVnetSqlServerInfraDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetKeyVaultConnectivityDeploymentTests.cs (1)
22using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetKeyVaultInfraDeploymentTests.cs (1)
22using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetSqlServerConnectivityDeploymentTests.cs (1)
27using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetSqlServerInfraDeploymentTests.cs (1)
22using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetStorageBlobConnectivityDeploymentTests.cs (1)
22using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetStorageBlobInfraDeploymentTests.cs (1)
22using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
Aspire.Hosting (14)
ApplicationModel\ResourceCommandService.cs (1)
439using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(progress.CancellationToken, cancellationToken);
ApplicationModel\ResourceLoggerService.cs (1)
232using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(_disposing.Token, cancellationToken);
ApplicationModel\ResourceNotificationService.cs (1)
670using var watchCts = CancellationTokenSource.CreateLinkedTokenSource(_disposing.Token, cancellationToken);
Backchannel\AppHostRpcTarget.cs (3)
39using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _shutdownCts.Token); 81using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _shutdownCts.Token); 118using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _shutdownCts.Token);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
647using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token); 1884using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
Dashboard\DashboardService.cs (1)
479using var cts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, serverCallContext.CancellationToken);
Dashboard\DashboardServiceData.cs (2)
172using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _cts.Token); 189using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _cts.Token);
Dashboard\ResourcePublisher.cs (1)
60using var linked = CancellationTokenSource.CreateLinkedTokenSource(enumeratorCancellationToken, cancellationToken);
Dcp\DcpHost.cs (1)
585var notificationCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _shutdownCts.Token);
ExternalServiceBuilderExtensions.cs (1)
350using var linkedSource = CancellationTokenSource.CreateLinkedTokenSource(timeoutSource.Token, cancellationToken);
Aspire.Hosting.Azure (2)
Provisioning\Internal\DefaultArmClientProvider.cs (2)
272using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token); 303using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
Aspire.Hosting.Azure.Kusto.Tests (5)
KustoFunctionalTests.cs (5)
47using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken); 98using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken); 176using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken); 204using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken); 237using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken);
Aspire.Hosting.Browsers (2)
BrowserLogsCdpConnection.cs (1)
239using var sendCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposeCts.Token);
BrowserPageSession.cs (1)
90using var captureCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _stopCts.Token);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (1)
239using var sendCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposeCts.Token);
src\Aspire.Hosting.Browsers\BrowserPageSession.cs (1)
90using var captureCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _stopCts.Token);
Aspire.Hosting.Foundry (2)
FoundryLocalService.cs (1)
166using var linkedCancellation = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, startCancellation.Token);
PromptAgent\AzurePromptAgentResource.cs (1)
306var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(context.CancellationToken, lifetime.ApplicationStopping);
Aspire.Hosting.RemoteHost.Tests (1)
JsonRpcAuthenticationTests.cs (1)
188using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
Aspire.Hosting.Testing (4)
DistributedApplicationFactory.cs (4)
48using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposingCts.Token); 58using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposingCts.Token); 71using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposingCts.Token); 597using var linkedToken = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, appFactory._disposingCts.Token);
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (1)
80var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
Aspire.Hosting.Tests (1)
Dcp\DcpHostNotificationTests.cs (1)
403using (var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(interaction.CancellationToken, testTimeoutCts.Token))
Aspire.Hosting.TestUtilities (1)
Utils\LoggerNotificationExtensions.cs (1)
80var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
Aspire.Playground.Tests (1)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (1)
80var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
Aspire.TerminalHost (1)
TerminalHostApp.cs (1)
106using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
dotnet (3)
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
175using var queueCancellation = CancellationTokenSource.CreateLinkedTokenSource(ctrlC.Token, testRunPolicy.Token);
NugetPackageDownloader\NuGetPackageDownloader.cs (2)
1012var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token); 1031var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
dotnet-aot (2)
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (2)
1012var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token); 1031var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
dotnet-watch (1)
Watch\DotNetWatcher.cs (1)
93using var combinedCancellationSource = CancellationTokenSource.CreateLinkedTokenSource(shutdownCancellationToken, currentRunCancellationSource.Token);
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSDataStream.cs (1)
258var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(token1, token2);
Microsoft.AspNetCore.Http (1)
Timeouts\CancellationTokenLinker.cs (1)
17var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(originalToken, timeoutCts.Token);
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (1)
1094var cts = CancellationTokenSource.CreateLinkedTokenSource(connectionState.UploadStreamToken, cancellationToken);
src\aspnetcore\src\SignalR\common\Shared\CreateLinkedToken.cs (1)
28var cts = CancellationTokenSource.CreateLinkedTokenSource(token1, token2);
Microsoft.AspNetCore.SignalR.Core (1)
src\aspnetcore\src\SignalR\common\Shared\CreateLinkedToken.cs (1)
28var cts = CancellationTokenSource.CreateLinkedTokenSource(token1, token2);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\aspnetcore\src\SignalR\common\Shared\CreateLinkedToken.cs (1)
28var cts = CancellationTokenSource.CreateLinkedTokenSource(token1, token2);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\SpaProxy.cs (1)
62var proxyCancellationToken = CancellationTokenSource.CreateLinkedTokenSource(
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.Workspaces (3)
Remote\IRemoteKeepAliveService.cs (1)
147using var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(
Shared\TestHooks\AsynchronousOperationListener.cs (1)
55var cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, expeditedDelayCancellationToken);
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.Diagnostics.NETCore.Client (8)
DiagnosticsIpc\IpcServerTransport.cs (2)
127using CancellationTokenSource linkedSource = CancellationTokenSource.CreateLinkedTokenSource(token, _cancellation.Token); 199using CancellationTokenSource linkedSource = CancellationTokenSource.CreateLinkedTokenSource(token, _cancellation.Token);
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (5)
229using CancellationTokenSource acceptTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token, acceptTimeoutTokenSource.Token); 254using CancellationTokenSource connectTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token, connectTimeoutTokenSource.Token); 460using CancellationTokenSource connectTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token, connectTimeoutTokenSource.Token); 583using CancellationTokenSource connectTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token, connectTimeoutTokenSource.Token); 673using CancellationTokenSource connectTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token, connectTimeoutTokenSource.Token);
ReversedServer\ReversedDiagnosticsServer.cs (1)
274using CancellationTokenSource linkedSource = CancellationTokenSource.CreateLinkedTokenSource(token, parseCancellationSource.Token);
Microsoft.DotNet.HotReload.Watch (2)
HotReload\HotReloadDotNetWatcher.cs (2)
88using var iterationCancellationSource = CancellationTokenSource.CreateLinkedTokenSource(shutdownCancellationToken, forceRestartCancellationSource.Token); 516using var shutdownOrForcedRestartSource = CancellationTokenSource.CreateLinkedTokenSource(shutdownCancellationToken, forceRestartCancellationSource.Token);
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogCollector.LogEnumeration.cs (1)
92? CancellationTokenSource.CreateLinkedTokenSource(enumerableCancellationToken, enumeratorCancellationToken)
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
78using (var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _applicationLifetime.ApplicationStopping))
Microsoft.Extensions.Hosting.Testing (3)
FakeHost.cs (2)
78using var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource( 101using var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(
HostTerminatorService.cs (1)
54using var combinedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\DnsResolver.cs (1)
896CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, pendingRequestsCts.Token);
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\OneDeploy\OneDeployStatusService.cs (1)
41var retryTokenSource = CancellationTokenSource.CreateLinkedTokenSource(maxWaitForResultTokenSource.Token, cancellationToken);
MSBuild.Coordinator (1)
CoordinatorServer.cs (1)
56using CancellationTokenSource linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _cts.Token);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
System.Collections.Concurrent (3)
System\Collections\Concurrent\BlockingCollection.cs (3)
417linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource( 667linkedTokenSource ??= CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _consumersCancellationTokenSource.Token); 1620using CancellationTokenSource linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _consumersCancellationTokenSource.Token);
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
83CancellationTokenSource linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(_internalTokenSource.Token, cancellationToken);
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\QuerySettings.cs (1)
154CancellationTokenSource.CreateLinkedTokenSource(settings.CancellationState.InternalCancellationTokenSource.Token, settings.CancellationState.ExternalCancellationToken);
System.Net.Http (1)
System\Net\Http\HttpClient.cs (1)
819CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, pendingRequestsCts.Token);
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
428cts = CancellationTokenSource.CreateLinkedTokenSource(_pendingSendCts.Token, cancellationToken);
System.Net.Quic (1)
System\Net\Quic\QuicListener.cs (1)
232using CancellationTokenSource linkedCts = CancellationTokenSource.CreateLinkedTokenSource(_disposeCts.Token, connection.ConnectionShutdownToken);
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1690using CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(ctEnumerable, ctEnumerator);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
8812 => CreateLinkedTokenSource(tokens[0], tokens[1]),
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
1923CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(dataflowBlockOptions.CancellationToken, CancellationToken.None);