1 instantiation of CancellationTokenRegistration
System.Private.CoreLib (1)
248 references to CancellationTokenRegistration
aspire (1)
Aspire.Dashboard (1)
Aspire.Hosting (5)
Aspire.Hosting.DevTunnels (1)
aspire-server (1)
GenerateDocumentationAndConfigFiles (3)
GetDocument.Insider (1)
HelixTestRunner (1)
IIS.Tests (1)
InMemory.FunctionalTests (1)
Metrics (4)
Metrics.Legacy (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Server.HttpSys (10)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.AspNetCore.SignalR.Client.Core (4)
Microsoft.AspNetCore.SignalR.Core (7)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.AspNetCore.TestHost (2)
Microsoft.AspNetCore.WebSockets.Tests (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (4)
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.InteractiveHost (3)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
Microsoft.CodeAnalysis.Threading.Package (1)
Microsoft.CodeAnalysis.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
Microsoft.Extensions.Hosting (2)
Microsoft.Extensions.Hosting.Systemd (2)
Microsoft.Extensions.Validation.GeneratorTests (1)
Microsoft.JSInterop (2)
Microsoft.ML.AutoML (4)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
mscorlib (1)
netstandard (1)
Roslyn.Diagnostics.Analyzers (4)
RunTests (1)
SignalRSamples (1)
System.Data.Common (3)
System.IO.Pipelines (10)
System.IO.Ports (1)
System.Net.Http (23)
System.Net.Ping (1)
System.Net.Quic (5)
System.Net.Sockets (1)
System.Net.WebSockets (2)
System.Private.CoreLib (46)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (16)
130/// <returns>The <see cref="CancellationTokenRegistration"/> instance that can
133public CancellationTokenRegistration Register(Action callback) => Register(callback, useSynchronizationContext: false);
154/// <returns>The <see cref="CancellationTokenRegistration"/> instance that can
157public CancellationTokenRegistration Register(Action callback, bool useSynchronizationContext)
184/// <returns>The <see cref="CancellationTokenRegistration"/> instance that can
187public CancellationTokenRegistration Register(Action<object?> callback, object? state) =>
198/// <returns>The <see cref="CancellationTokenRegistration"/> instance that can be used to unregister the callback.</returns>
200public CancellationTokenRegistration Register(Action<object?, CancellationToken> callback, object? state) =>
223/// <returns>The <see cref="CancellationTokenRegistration"/> instance that can
228public CancellationTokenRegistration Register(Action<object?> callback, object? state, bool useSynchronizationContext) =>
247/// <returns>The <see cref="CancellationTokenRegistration"/> instance that can
250public CancellationTokenRegistration UnsafeRegister(Action<object?> callback, object? state) =>
260/// <returns>The <see cref="CancellationTokenRegistration"/> instance that can be used to unregister the callback.</returns>
262public CancellationTokenRegistration UnsafeRegister(Action<object?, CancellationToken> callback, object? state) =>
282/// <returns>The <see cref="CancellationTokenRegistration"/> instance that can
287private CancellationTokenRegistration Register(Delegate callback, object? state, bool useSynchronizationContext, bool useExecutionContext)
System.Runtime (1)
System.Threading.Channels (2)
System.Threading.RateLimiting (4)
System.Threading.Tasks (1)
System.Threading.Tasks.Dataflow (6)
System.Threading.Tasks.Parallel (5)
System.Windows.Forms (2)
Test.Utilities (3)
Text.Analyzers (4)
Wasm.Performance.Driver (1)