109 references to CreateLinkedTokenSource
aspire (2)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
140using var combined = CancellationTokenSource.CreateLinkedTokenSource(stoppingToken, timeout.Token);
NuGet\NuGetPackagePrefetcher.cs (1)
78using var combined = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeout.Token);
Aspire.Dashboard (5)
ServiceClient\DashboardClient.cs (5)
598var cts = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 646var cts = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 688using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 728using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 767using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken);
Aspire.Dashboard.Tests (1)
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (1)
659using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cts.Token, doneCts.Token);
Aspire.Deployment.EndToEnd.Tests (26)
AcaCompactNamingDeploymentTests.cs (1)
29using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaCompactNamingUpgradeDeploymentTests.cs (1)
28using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaCustomRegistryDeploymentTests.cs (1)
25using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaDeploymentErrorOutputTests.cs (1)
31using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaExistingRegistryDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaManagedRedisDeploymentTests.cs (1)
25using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcaStarterDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AcrPurgeTaskDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksStarterDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AksStarterWithRedisDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AppServicePythonDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AppServiceReactDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureAppConfigDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureContainerRegistryDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureEventHubsDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureKeyVaultDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureLogAnalyticsDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureServiceBusDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
AzureStorageDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
PythonFastApiDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetKeyVaultConnectivityDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetKeyVaultInfraDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetSqlServerConnectivityDeploymentTests.cs (1)
24using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetSqlServerInfraDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetStorageBlobConnectivityDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
VnetStorageBlobInfraDeploymentTests.cs (1)
23using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(
Aspire.Hosting (12)
ApplicationModel\ResourceLoggerService.cs (1)
229using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(_disposing.Token, cancellationToken);
ApplicationModel\ResourceNotificationService.cs (1)
474using var watchCts = CancellationTokenSource.CreateLinkedTokenSource(_disposing.Token, cancellationToken);
Backchannel\AppHostRpcTarget.cs (3)
27using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _shutdownCts.Token); 62using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _shutdownCts.Token); 93using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _shutdownCts.Token);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
251using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token); 873using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, timeoutCts.Token);
Dashboard\DashboardService.cs (1)
381using var cts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, serverCallContext.CancellationToken);
Dashboard\DashboardServiceData.cs (2)
133using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _cts.Token); 150using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _cts.Token);
Dashboard\ResourcePublisher.cs (1)
60using var linked = CancellationTokenSource.CreateLinkedTokenSource(enumeratorCancellationToken, cancellationToken);
Dcp\DcpHost.cs (1)
405var notificationCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _shutdownCts.Token);
Aspire.Hosting.Azure.Kusto.Tests (5)
KustoFunctionalTests.cs (5)
47using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken); 97using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken); 175using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken); 202using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken); 233using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token, TestContext.Current.CancellationToken);
Aspire.Hosting.Testing (4)
DistributedApplicationFactory.cs (4)
49using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposingCts.Token); 59using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposingCts.Token); 72using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _disposingCts.Token); 615using var linkedToken = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, appFactory._disposingCts.Token);
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
80var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
Aspire.Hosting.Tests (2)
Dcp\DcpHostNotificationTests.cs (1)
323using (var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(interaction.CancellationToken, testTimeoutCts.Token))
Utils\LoggerNotificationExtensions.cs (1)
80var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
Aspire.Playground.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
80var watchCts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, cancellationToken);
GenerateDocumentationAndConfigFiles (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
InProcessWebSite (1)
Startup.WebSockets.cs (1)
128using var cts = CancellationTokenSource.CreateLinkedTokenSource(appLifetime.ApplicationStopping, context.RequestAborted);
Metrics (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Metrics.Legacy (1)
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.Http.Connections.Tests (1)
LongPollingTests.cs (1)
52using (var cts = CancellationTokenSource.CreateLinkedTokenSource(timeoutToken, context.RequestAborted))
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (1)
834var cts = CancellationTokenSource.CreateLinkedTokenSource(connectionState.UploadStreamToken, cancellationToken);
src\SignalR\common\Shared\CreateLinkedToken.cs (1)
28var cts = CancellationTokenSource.CreateLinkedTokenSource(token1, token2);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
TestHttpMessageHandler.cs (1)
111var cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, deleteCts.Token);
Microsoft.AspNetCore.SignalR.Core (1)
src\SignalR\common\Shared\CreateLinkedToken.cs (1)
28var cts = CancellationTokenSource.CreateLinkedTokenSource(token1, token2);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
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.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
165}, logger, CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, result.HostShutdownToken).Token);
Microsoft.CodeAnalysis.Analyzers (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (1)
223currentWorkCts = CancellationTokenSource.CreateLinkedTokenSource(CancellationToken, cancellationToken);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CodeAnalysis.Threading.Package (1)
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\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
RequestExecutionQueue.cs (1)
223currentWorkCts = CancellationTokenSource.CreateLinkedTokenSource(CancellationToken, cancellationToken);
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogCollector.LogEnumeration.cs (1)
92? CancellationTokenSource.CreateLinkedTokenSource(enumerableCancellationToken, enumeratorCancellationToken)
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
76using (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)
880CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, pendingRequestsCts.Token);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchPresenterController.cs (1)
38using var queryCancellationSource = CancellationTokenSource.CreateLinkedTokenSource(presenterCancellationToken, cancellationToken);
Roslyn.Diagnostics.Analyzers (1)
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)
810CancellationTokenSource 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.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
117CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _abortSource.Token);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1686using CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(ctEnumerable, ctEnumerator);
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);
Test.Utilities (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);
Text.Analyzers (1)
src\Dependencies\Threading\CancellationSeries.cs (1)
70var nextSource = CancellationTokenSource.CreateLinkedTokenSource(token, _superToken);