65 references to CreateLinkedTokenSource
Aspire.Dashboard (5)
ServiceClient\DashboardClient.cs (5)
557var cts = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 605var cts = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 647using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 694using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken); 733using var combinedTokens = CancellationTokenSource.CreateLinkedTokenSource(_clientCancellationToken, cancellationToken);
Aspire.Hosting (6)
ApplicationModel\ResourceNotificationService.cs (2)
127using var watchCts = CancellationTokenSource.CreateLinkedTokenSource(_disposing.Token, cancellationToken); 419using var watchCts = CancellationTokenSource.CreateLinkedTokenSource(_disposing.Token, cancellationToken);
Dashboard\DashboardService.cs (1)
337using var cts = CancellationTokenSource.CreateLinkedTokenSource(hostApplicationLifetime.ApplicationStopping, serverCallContext.CancellationToken);
Dashboard\DashboardServiceData.cs (2)
127using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _cts.Token); 144using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, _cts.Token);
Dashboard\ResourcePublisher.cs (1)
60using var linked = CancellationTokenSource.CreateLinkedTokenSource(enumeratorCancellationToken, 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 (1)
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);
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 (2)
Shared\TestHooks\AsynchronousOperationListener.cs (1)
56var 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.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)
882CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, pendingRequestsCts.Token);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchPresenterController.cs (1)
30using 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); 1619using 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)
798CancellationTokenSource 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)
230using 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)
1638using CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(ctEnumerable, ctEnumerator);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
8902 => 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);