79 references to OperationCanceledException
dotnet-svcutil-lib (2)
CmdCredentialsProvider.cs (2)
267throw new OperationCanceledException(); 286throw new OperationCanceledException();
http2cat (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
IIS.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
IIS.LongTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
IIS.NewHandler.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
IIS.NewShim.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
IISExpress.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
Microsoft.AspNetCore.Components.Tests (7)
RendererTest.cs (3)
1444throw new OperationCanceledException(); 1477throw new OperationCanceledException(); 1512throw new OperationCanceledException();
Rendering\RendererSynchronizationContextTest.cs (4)
486throw new OperationCanceledException(); 574throw new OperationCanceledException(); 668throw new OperationCanceledException(); 756throw new OperationCanceledException();
Microsoft.AspNetCore.Http.Connections (2)
src\SignalR\common\Shared\PipeWriterStream.cs (2)
82throw new OperationCanceledException(); 99throw new OperationCanceledException();
Microsoft.AspNetCore.Http.Connections.Client (2)
src\SignalR\common\Shared\PipeWriterStream.cs (2)
82throw new OperationCanceledException(); 99throw new OperationCanceledException();
Microsoft.AspNetCore.Http.Connections.Tests (1)
TestWebSocketConnectionFeature.cs (1)
85_output.TryComplete(new OperationCanceledException());
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\JsonResultExecutorTestBase.cs (1)
444throw new OperationCanceledException();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (2)
NewtonsoftJsonOutputFormatterTest.cs (1)
509throw new OperationCanceledException();
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (1)
444throw new OperationCanceledException();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ServerInfrastructure\DuplexPipeStream.cs (1)
129throw new OperationCanceledException();
Microsoft.AspNetCore.SignalR.Client.Core (3)
Internal\InvocationRequest.cs (1)
163_channel.Writer.TryComplete(new OperationCanceledException());
src\SignalR\common\Shared\PipeWriterStream.cs (2)
82throw new OperationCanceledException(); 99throw new OperationCanceledException();
Microsoft.AspNetCore.SignalR.Client.Tests (2)
LongPollingTransportTests.cs (1)
655throw new OperationCanceledException();
TestTransport.cs (1)
70throw new OperationCanceledException();
Microsoft.AspNetCore.TestHost (2)
ResponseBodyReaderStream.cs (2)
91throw new OperationCanceledException(); 111Abort(new OperationCanceledException());
Microsoft.AspNetCore.WebSockets.Tests (1)
BufferStream.cs (1)
306Abort(new OperationCanceledException());
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
32public SoftCrashException() : base() { }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
1686Func<int, CancellationToken, int> otherTimeoutFunc = (input, _) => throw new OperationCanceledException();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
RenameTracking\RenameTrackingTaggerProviderTests.cs (1)
889source.TrySetException(new OperationCanceledException());
Microsoft.CodeAnalysis.Test.Utilities (1)
Pe\BrokenStream.cs (1)
96ThrownException = new OperationCanceledException();
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
32public SoftCrashException() : base() { }
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\ExceptionHelpersTests.cs (1)
27throw new OperationCanceledException();
Microsoft.Extensions.AI.Evaluation.Console.Tests (11)
ExceptionUtilitiesTests.cs (11)
25var exception = new OperationCanceledException(); 41var exception = new AggregateException(new OperationCanceledException()); 60new OperationCanceledException(), 61new OperationCanceledException()); 85var exception = new AggregateException(new OperationCanceledException(), new InvalidOperationException()); 96new OperationCanceledException(), 97new OperationCanceledException()); 125var exception1 = new AggregateException(new TaskCanceledException(), new OperationCanceledException()); 126var exception2 = new AggregateException(new OperationCanceledException()); 135var exception1 = new AggregateException(new TaskCanceledException(), new OperationCanceledException()); 136var exception2 = new AggregateException(new InvalidOperationException(), new OperationCanceledException());
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggerTest.cs (1)
120var operationCanceledException = new OperationCanceledException();
Microsoft.Extensions.Http.Polly.Tests (1)
PolicyHttpMessageHandlerTest.cs (1)
362throw new OperationCanceledException();
Microsoft.ML.AutoML (1)
Tuner\AutoZeroTuner.cs (1)
109throw new OperationCanceledException();
Roslyn.VisualStudio.Next.UnitTests (3)
Services\ServiceHubServicesTests_ExtensionMessageHandler.cs (3)
229assemblyLoaderProvider.CreateNewShadowCopyLoaderCallback = (_, _) => throw new OperationCanceledException(); 308(_, _, _) => throw new OperationCanceledException())); 529throw new OperationCanceledException();
System.Console (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
System.Formats.Tar (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
System.IO.MemoryMappedFiles (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
System.IO.Pipes (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
System.IO.Ports (1)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
System.Linq.Parallel (2)
System\Linq\Parallel\QueryOperators\QueryOperator.cs (2)
147throw new OperationCanceledException(); 217throw new OperationCanceledException();
System.Net.Http (1)
System\Net\Http\CancellationHelper.cs (1)
13private static readonly string s_cancellationMessage = new OperationCanceledException().Message; // use same message as the default ctor
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
777NameResolutionTelemetry.Log.AfterResolution(key!, activity, new OperationCanceledException());
System.Net.WebClient (1)
src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (1)
90SetException(token.IsCancellationRequested ? new OperationCanceledException(token) : new OperationCanceledException());
System.Net.WebSockets (1)
System\Net\WebSockets\ManagedWebSocket.cs (1)
1730new OperationCanceledException().Message,
System.Private.CoreLib (4)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (1)
155return new OperationCanceledException();
src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
58return new OperationCanceledException();
src\libraries\System.Private.CoreLib\src\System\OperationCanceledException.cs (1)
47: this()
src\System\Runtime\ControlledExecution.CoreCLR.cs (1)
101OperationCanceledException e = cancellationToken.IsCancellationRequested ? new(cancellationToken) : new();
VBCSCompiler (2)
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (2)
156throw new OperationCanceledException(); 202throw new OperationCanceledException();