70 references to CreateLinkedTokenSource
aspire (6)
Backchannel\ExtensionBackchannel.cs (1)
91using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Utils\CliDownloader.cs (1)
174using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (3)
113using var versionTimeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 264using var psTimeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 471using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Utils\EnvironmentChecker\DeprecatedWorkloadCheck.cs (1)
44using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Dashboard (4)
Mcp\AspireResourceMcpTools.cs (1)
98using var subscribeConsoleLogsCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Model\Assistant\AssistantChatDataContext.cs (1)
256using var subscribeConsoleLogsCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Model\Assistant\AssistantChatViewModel.cs (1)
482: CancellationTokenSource.CreateLinkedTokenSource(_cts.Token);
ServiceClient\DashboardClient.cs (1)
453var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting (15)
Dashboard\DashboardEventHandlers.cs (1)
83_dashboardLogsCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping);
Dashboard\DashboardService.cs (1)
67var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Dcp\DcpHost.cs (1)
93using 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);
Health\ResourceHealthCheckService.cs (1)
320_cts = CancellationTokenSource.CreateLinkedTokenSource(serviceStoppingToken);
IInteractionService.cs (1)
164_currentCts = CancellationTokenSource.CreateLinkedTokenSource(options.CancellationToken);
InteractionService.cs (3)
82using var interactionCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 156using var interactionCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 224using var interactionCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Orchestrator\ApplicationOrchestrator.cs (1)
95using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Pipelines\DistributedApplicationPipeline.cs (1)
593using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(context.CancellationToken);
Utils\PeriodicRestartAsyncEnumerable.cs (2)
26using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 82using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.DevTunnels (1)
src\Shared\CoalescingAsyncOperation.cs (1)
44_cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
63using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
aspire-server (2)
CancellationTokenRegistry.cs (1)
52var cts = CancellationTokenSource.CreateLinkedTokenSource(linkedToken);
JsonRpcCallbackInvoker.cs (1)
38using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
301var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.AspNetCore.Components.Web (2)
Forms\InputFile\BrowserFileStream.cs (2)
33_openReadStreamCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); 104_copyFileDataCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
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)
674var cts = cancellationToken.CanBeCanceled ? CancellationTokenSource.CreateLinkedTokenSource(cancellationToken) : new CancellationTokenSource();
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (2)
516streamCts ??= CancellationTokenSource.CreateLinkedTokenSource(connection.ConnectionAborted); 736cts = 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\Compilers\Shared\BuildServerConnection.cs (1)
301var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.CodeAnalysis (1)
CommandLine\CommonCompiler.cs (1)
1513var analyzerCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (1)
81using var cancellationSource = 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.LanguageServer.Protocol (1)
Handler\WorkDoneProgress\WorkDoneProgressManager.cs (1)
109_cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(serverCancellationToken);
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolUploadHelper.cs (1)
440using CancellationTokenSource lcts = CancellationTokenSource.CreateLinkedTokenSource(ct);
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (1)
101timeoutCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
HealthCheckPublisherHostedService.cs (1)
154cancellation = CancellationTokenSource.CreateLinkedTokenSource(_stopping.Token);
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
223cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Extensions.Hosting.Abstractions (1)
BackgroundService.cs (1)
43_stoppingCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpRequestBodyReader.cs (1)
61using var joinedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Logging\Internal\HttpResponseBodyReader.cs (1)
65using var joinedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Microsoft.Maui.Essentials (1)
Types\Shared\Utils.shared.cs (1)
24 var cancelTokenSrc = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
Replay (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
301var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
RunTests (1)
Program.cs (1)
93using var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
49linkedCTS = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.Net.Quic (1)
System\Net\Quic\QuicConnection.cs (1)
77using CancellationTokenSource linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
System.Private.CoreLib (2)
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\Compilers\Shared\BuildServerConnection.cs (1)
301var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
VBCSCompiler (2)
src\Compilers\Server\VBCSCompiler\ClientConnectionHandler.cs (1)
116var buildCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
src\Compilers\Shared\BuildServerConnection.cs (1)
301var serverCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);