42 references to OperationCanceledException
Aspire.Cli.Tests (1)
Mcp\Docs\DocsFetcherTests.cs (1)
304new OperationCanceledException("Operation was cancelled"),
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
260throw new OperationCanceledException("Read call was canceled.");
Aspire.Hosting (3)
ApplicationModel\ResourceNotificationService.cs (1)
696throw new OperationCanceledException(BuildCancellationErrorMessage(cancellationMessage, resourceName));
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
792throw new OperationCanceledException(cancellationMessage);
Pipelines\DistributedApplicationPipeline.cs (1)
108throw new OperationCanceledException("Pipeline execution canceled by user.");
Aspire.Hosting.Azure (1)
AzureEnvironmentResource.cs (1)
353throw new OperationCanceledException("Destroy operation canceled by user.");
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
541throw new OperationCanceledException("Destroy operation canceled by user.");
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
701throw new OperationCanceledException("Destroy operation canceled by user.");
Aspire.Hosting.RemoteHost.Tests (1)
CallbackProxyTests.cs (1)
263ExceptionToThrow = new OperationCanceledException("Operation was cancelled")
Aspire.Hosting.Tests (2)
ResourceCommandServiceTests.cs (1)
371throw new OperationCanceledException("Command was canceled");
Terminals\InteractionServiceTerminalTests.cs (1)
346var failure = new OperationCanceledException("not the interaction token");
Aspire.Hosting.TestUtilities (1)
Helpers\DashboardServiceDataExtensions.cs (1)
27throw new OperationCanceledException($"The operation was cancelled before the resource met the predicate condition.");
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
337throw new OperationCanceledException("Failed to connect, retry limit exceeded.");
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
34public SoftCrashException(string message) : base(message) { }
Microsoft.AspNetCore.Connections.Abstractions (1)
Exceptions\ConnectionAbortedException.cs (1)
25public ConnectionAbortedException(string message) : base(message)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\RetryHelper.cs (1)
66throw new OperationCanceledException("Failed to connect, retry limit exceeded.");
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpRequestStream.cs (1)
123throw new OperationCanceledException("The read was canceled");
Internal\Http3\Http3PendingStream.cs (1)
54throw new OperationCanceledException("The read operation was canceled.");
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
2226CompleteClose(new OperationCanceledException(message));
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionContext.cs (2)
834CloseException ??= new OperationCanceledException($"Client hasn't sent a message/ping within the configured {nameof(HubConnectionContextOptions.ClientTimeoutInterval)}."); 905_streamTracker?.CompleteAll(new OperationCanceledException("The underlying connection was closed."));
Microsoft.AspNetCore.TestHost (1)
RequestLifetimeFeature.cs (1)
28_abort(new OperationCanceledException("The application aborted the request."));
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
34public SoftCrashException(string message) : base(message) { }
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
34public SoftCrashException(string message) : base(message) { }
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
34public SoftCrashException(string message) : base(message) { }
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
34public SoftCrashException(string message) : base(message) { }
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
34public SoftCrashException(string message) : base(message) { }
Microsoft.ML.Core (1)
Utilities\Contracts.cs (1)
753throw Process(new OperationCanceledException("Operation was canceled."), env);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (1)
34public SoftCrashException(string message) : base(message) { }
System.IO.Pipelines (2)
System\IO\Pipelines\ThrowHelper.cs (2)
75public static OperationCanceledException CreateOperationCanceledException_ReadCanceled() => new OperationCanceledException(SR.ReadCanceledOnPipeReader); 80public static OperationCanceledException CreateOperationCanceledException_FlushCanceled() => new OperationCanceledException(SR.FlushCanceledOnPipeWriter);
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\OperationCanceledException.cs (1)
53: this(message)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCanceledException.cs (2)
31public TaskCanceledException() : base(SR.TaskCanceledException_ctor_DefaultMessage) 40public TaskCanceledException(string? message) : base(message ?? SR.TaskCanceledException_ctor_DefaultMessage)
System.Speech (6)
Internal\Synthesis\VoiceSynthesis.cs (4)
395paramSpeak._prompt.Exception = new OperationCanceledException(SR.Get(SRID.PromptAsyncOperationCancelled)); 420paramSpeak._prompt.Exception = new OperationCanceledException(SR.Get(SRID.PromptAsyncOperationCancelled)); 879throw new OperationCanceledException(SR.Get(SRID.PromptAsyncOperationCancelled)); 944throw new OperationCanceledException(SR.Get(SRID.PromptAsyncOperationCancelled));
Recognition\RecognizerBase.cs (2)
134throw new OperationCanceledException(SR.Get(SRID.OperationAborted)); 554throw new OperationCanceledException(SR.Get(SRID.OperationAborted));
System.Text.Json (2)
System\Text\Json\ThrowHelper.Serialization.cs (2)
1150throw new OperationCanceledException(SR.PipeWriterCanceled); 1156throw new OperationCanceledException(SR.PipeReaderCanceled);