152 references to CreateLinkedTokenSource
aspire (29)
Commands\AppHostLauncher.cs (2)
583using var readinessCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 757using var probeCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Commands\InstallationInfoOutput.cs (1)
32using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Commands\LsCommand.cs (1)
199using var statusCancellation = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Commands\PsCommand.cs (1)
184using var followCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Commands\RenderCommand.cs (1)
411using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Commands\RunCommand.cs (3)
346runCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 406using var logCaptureCancellationSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 790using var startupCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Projects\AppHostServerSession.cs (2)
90_stopCts = CancellationTokenSource.CreateLinkedTokenSource(stopRequested); 312using var connectCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Projects\GuestAppHostProject.cs (3)
485using var serverStopCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 552using var appHostSystemCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 1098using var serverStopCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Projects\ProjectLocator.cs (2)
199using var discoveryCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 315? CancellationTokenSource.CreateLinkedTokenSource(cancellationToken)
src\Shared\ContainerRuntimeDetector.cs (3)
166using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 268using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 345using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Telemetry\InternalMicrosoftDetector.cs (2)
229using var stageCancellation = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 766using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Tui\TerminalViewerApp.cs (2)
207_embeddedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 226_outerCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Utils\CliDownloader.cs (1)
196using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
35using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Utils\EnvironmentChecker\DeprecatedWorkloadCheck.cs (1)
54using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Utils\EnvironmentChecker\EnvironmentChecker.cs (2)
45using var totalTimeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 54using var checkTimeoutCts = CancellationTokenSource.CreateLinkedTokenSource(totalTimeoutCts.Token);
Utils\ProcessCaptureRunner.cs (1)
72using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Dashboard (5)
Components\Controls\ApplicationName.razor.cs (1)
37using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(_disposalCts.Token);
ServiceClient\DashboardClient.cs (3)
398delayCts = _reconnectDelayCts ??= CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 489delayCts = _reconnectDelayCts ??= CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 696var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Terminal\TerminalWebSocketProxy.cs (1)
264using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(ct);
Aspire.Hosting (24)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
249using var logCts = CancellationTokenSource.CreateLinkedTokenSource(context.CancellationToken); 273using var buildTimeoutCts = CancellationTokenSource.CreateLinkedTokenSource(context.CancellationToken);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1577using var logStreamCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Backchannel\TerminalHostControlClient.cs (1)
43using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Dashboard\DashboardEventHandlers.cs (1)
81_dashboardLogsCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping);
Dashboard\DashboardService.cs (1)
77var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Dcp\DcpHost.cs (1)
106using var timeoutCancellation = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Dcp\DcpKubernetesClient.cs (3)
52using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 92using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 118using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Dcp\DcpResourceWatcher.cs (1)
436using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Health\ResourceHealthCheckService.cs (1)
332_cts = CancellationTokenSource.CreateLinkedTokenSource(serviceStoppingToken);
IInteractionService.cs (1)
189_currentCts = CancellationTokenSource.CreateLinkedTokenSource(options.CancellationToken);
InteractionService.cs (4)
114using var interactionCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 189using var interactionCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 268using var interactionCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 296using var interactionCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Orchestrator\ApplicationOrchestrator.cs (1)
128using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Pipelines\DistributedApplicationPipeline.cs (1)
193using var waitCts = CancellationTokenSource.CreateLinkedTokenSource(context.CancellationToken);
src\Shared\ContainerRuntimeDetector.cs (3)
166using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 268using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 345using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Utils\PeriodicRestartAsyncEnumerable.cs (2)
26using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 82using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.Azure (2)
AzureProvisioningController.cs (1)
4252=> new(intent, operation, startedAt, CancellationTokenSource.CreateLinkedTokenSource(cancellationToken));
Provisioning\Provisioners\BicepProvisioner.cs (1)
699using var deploymentOperationTrackingCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
82using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.Browsers (1)
BrowserEndpointDiscovery.cs (1)
210using var probeCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
210using var probeCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
tests\Shared\TestInteractionService.cs (1)
82using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.DevTunnels (1)
src\Shared\CoalescingAsyncOperation.cs (1)
44_cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\TestInteractionService.cs (1)
82using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
916using var cts = CancellationTokenSource.CreateLinkedTokenSource(TestContext.Current.CancellationToken);
Aspire.Hosting.EntityFrameworkCore (1)
EFCoreOperationExecutor.cs (1)
295using var logCancellation = CancellationTokenSource.CreateLinkedTokenSource(_cancellationToken);
Aspire.Hosting.Maui (3)
Lifecycle\MauiBuildQueueEventSubscriber.cs (3)
71using var resourceCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 180using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 288using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
63using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.Radius (1)
Publishing\SealedSecretApplyStep.cs (1)
328using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.RemoteHost (2)
CancellationTokenRegistry.cs (1)
52var cts = CancellationTokenSource.CreateLinkedTokenSource(linkedToken);
JsonRpcCallbackInvoker.cs (1)
38using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TestInteractionService.cs (1)
82using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.Rust (1)
CargoMetadataReader.cs (1)
101using var timeoutSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.Tests (2)
Dcp\KubernetesServiceTests.cs (1)
140using var watchCts = CancellationTokenSource.CreateLinkedTokenSource(cts.Token);
tests\Shared\TestInteractionService.cs (1)
82using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.TerminalHost (2)
TerminalHostProcessRunner.cs (1)
21using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
TerminalReplica.cs (1)
182_stopCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.TestTools (2)
GitHubCli.cs (2)
245using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 295using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
310var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
dotnet (2)
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
837CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.12.0-1.26426.103\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
310var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
dotnet-aot (1)
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
837CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.AspNetCore.Components.AI (2)
Engine\AgentContext.cs (2)
90_streamingCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 112_streamingCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.AspNetCore.Components.Forms (1)
EditContext.cs (1)
352/// <see cref="CancellationTokenSource.CreateLinkedTokenSource(CancellationToken)"/>. Write
Microsoft.AspNetCore.Components.Web (4)
Forms\InputFile\BrowserFileStream.cs (2)
33_openReadStreamCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 104_copyFileDataCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Virtualization\Virtualize.cs (2)
264var ourCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 954? CancellationTokenSource.CreateLinkedTokenSource(ownerCancellationToken)
Microsoft.AspNetCore.Hosting (2)
Internal\WebHost.cs (1)
290using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
WebHostExtensions.cs (1)
50using (var cts = CancellationTokenSource.CreateLinkedTokenSource(token))
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.cs (1)
60_requestAbortSource = CancellationTokenSource.CreateLinkedTokenSource(connectionDisconnectToken);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
361using var cts = CancellationTokenSource.CreateLinkedTokenSource(_stopCts.Token);
Microsoft.AspNetCore.Session (2)
DistributedSession.cs (2)
216using (var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken)) 246using (var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken))
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
960var cts = cancellationToken.CanBeCanceled ? CancellationTokenSource.CreateLinkedTokenSource(cancellationToken) : new CancellationTokenSource();
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (2)
594streamCts ??= CancellationTokenSource.CreateLinkedTokenSource(connection.ConnectionAborted); 844cts = CancellationTokenSource.CreateLinkedTokenSource(connection.ConnectionAborted);
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyLaunchManager.cs (2)
77using var cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 108using var cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
310var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\Node\OutOfProcRarNode.cs (1)
87using CancellationTokenSource linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
src\msbuild\src\Shared\NodePipeServer.cs (1)
99using CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.CodeAnalysis (1)
CommandLine\CommonCompiler.cs (1)
1541var analyzerCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.CodeAnalysis.Features (5)
AddImport\AbstractAddImportFeatureService.cs (2)
230using var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 281using var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
CodeFixes\Service\CodeFixService.cs (1)
122using var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
CodeLens\CodeLensFindReferenceProgress.cs (1)
30private readonly CancellationTokenSource _aggregateCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
CodeRefactorings\CodeRefactoringService.cs (1)
128using var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
Copilot\Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (1)
81using var cancellationSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.DotNet.Cli.Telemetry (1)
Implementation\PersistentStorageTelemetryUploader.cs (1)
82using var perBlobCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.DotNet.HotReload.Watch (1)
Build\ProjectBuildManager.cs (1)
45using var buildCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (1)
101timeoutCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
HealthCheckPublisherHostedService.cs (1)
154cancellation = CancellationTokenSource.CreateLinkedTokenSource(_stopping.Token);
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\WebSocketTransport.cs (1)
48using var connectCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
324cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Extensions.Hosting.Abstractions (1)
BackgroundService.cs (1)
43_stoppingCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Maui.Essentials (1)
Types\Shared\Utils.shared.cs (1)
24 var cancelTokenSrc = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.NET.Build.Containers (2)
LocalDaemons\ContainerRuntime.cs (1)
193using CancellationTokenSource timeout = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
LocalDaemons\ContainerRuntimeOperations.cs (1)
60using CancellationTokenSource processCancellation = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (1)
243var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.TemplateEngine.Edge (1)
Installers\NuGet\NugetApiPackageManager.cs (1)
326CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
NuGet.CommandLine.XPlat (1)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (1)
481CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
NuGet.PackageManagement (3)
NuGetPackageManager.cs (1)
2570downloadTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token);
PackageDownloader.cs (1)
80var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token);
Resolution\ResolverGather.cs (1)
423using (var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token))
NuGet.Protocol (4)
Plugins\AutomaticProgressReporter.cs (1)
31_cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Plugins\InboundRequestContext.cs (1)
90_cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Plugins\OutboundRequestContext`1.cs (1)
120_cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Plugins\PluginFactory.cs (1)
213using (var combinedCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(sessionCancellationToken))
rzc (2)
DefaultRequestDispatcher.cs (1)
361var buildCancelled = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
ServerProtocol\ServerConnection.cs (1)
243var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Stress.AppHost (1)
InteractionCommands.cs (1)
855using var cts = CancellationTokenSource.CreateLinkedTokenSource(commandContext.CancellationToken);
System.CommandLine (1)
Invocation\InvocationPipeline.cs (1)
14using CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\Validator.cs (2)
721using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 865using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.Diagnostics.Process (1)
System\Diagnostics\Process.Multiplexing.cs (1)
544CancellationTokenSource linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
49linkedCTS = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.Net.NameResolution (2)
System\Net\DnsResolverPal.Managed.cs (2)
636using CancellationTokenSource timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 696using CancellationTokenSource timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.Net.Quic (1)
System\Net\Quic\QuicConnection.cs (1)
77using CancellationTokenSource linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (2)
843!token1.CanBeCanceled ? CreateLinkedTokenSource(token2) : 8801 => CreateLinkedTokenSource(tokens[0]),
Testing.Tests (1)
WaitFailures.cs (1)
15var cts = CancellationTokenSource.CreateLinkedTokenSource(TestContext.Current.CancellationToken);
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
310var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
VBCSCompiler (2)
src\roslyn\src\Compilers\Server\VBCSCompiler\ClientConnectionHandler.cs (1)
116var buildCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
310var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);