1 type derived from TimeoutException
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexMatchTimeoutException.cs (1)
14public class RegexMatchTimeoutException : TimeoutException, ISerializable
231 instantiations of TimeoutException
Aspire.Dashboard.Components.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Dashboard.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.GitHub.Models.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.Kafka.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.MySql.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.NodeJs.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.OpenAI.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.PostgreSQL.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.RabbitMQ.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Hosting.Valkey.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Playground.Tests (2)
tests\Shared\AsyncTestHelpers.cs (2)
143throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber)); 177throw new TimeoutException(CreateMessage(timeout, filePath!, lineNumber));
Aspire.Templates.Tests (1)
TemplateTestsBase.cs (1)
41throw new TimeoutException("Browser creation timed out");
Client.ChannelLayer.IntegrationTests (1)
DuplexChannelWithSynchronizationContext.cs (1)
282throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout));
Client.ExpectedExceptions.IntegrationTests (2)
ExpectedExceptionTests.4.1.0.cs (2)
259throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout)); 311throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout));
Client.TypedClient.IntegrationTests (1)
TypedProxyTests.4.0.0.cs (1)
425throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", maxTestWaitTime));
dotnet-getdocument (1)
Exe.cs (1)
57throw new TimeoutException($"Process {executable} timed out after 2 minutes.");
dotnet-svcutil-lib (46)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (2)
152throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout))); 291throw Fx.Exception.AsError(new TimeoutException());
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (1)
233throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (1)
228return new TimeoutException(string.Format(SRServiceModel.LockTimeoutExceptionMessage, timeout));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (1)
520return new TimeoutException(ioException.InnerException.Message, ioException);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (5)
137throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 259throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 303throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 803new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout))); 843new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (3)
325new TimeoutException(string.Format(SRServiceModel.TimeoutOnOpen, timeout), exception)); 353new TimeoutException(string.Format(SRServiceModel.TimeoutOnOpen, timeout), exception)); 427return new TimeoutException(string.Format(SRServiceModel.OpenTimedOutEstablishingTransportSession,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
954throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format( 1019throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(_httpResponseMessage.StatusCode + " " + _httpResponseMessage.ReasonPhrase));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (3)
230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, timeout))); 286throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, timeout))); 325this.Complete(false, new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, _timeout)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (2)
284throw TraceUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.RequestChannelSendTimedOut, savedTimeout), 296throw TraceUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.RequestChannelWaitForReplyTimedOut, savedTimeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (2)
882return new TimeoutException(string.Format(SRServiceModel.TimeoutServiceChannelConcurrentOpen2, address, timeout)); 886return new TimeoutException(string.Format(SRServiceModel.TimeoutServiceChannelConcurrentOpen1, timeout));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (4)
222TimeoutException timeoutException = new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout), originalException); 242TimeoutException timeoutException = new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout), originalException); 266return new TimeoutException(timeoutErrorString, originalException); 530throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SynchronizedMessageSource.cs (4)
34new TimeoutException(string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 58new TimeoutException(string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 83new TimeoutException(string.Format(SRServiceModel.ReceiveTimedOut2, timeout), 108new TimeoutException(string.Format(SRServiceModel.ReceiveTimedOut2, timeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (4)
291throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 514throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 619throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (2)
237return innerException == null ? new TimeoutException(errorMsg) : new TimeoutException(errorMsg, innerException);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (6)
151throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout))); 523throw FxTrace.Exception.AsError(new TimeoutException( 546throw FxTrace.Exception.AsError(new TimeoutException( 1071throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(ReadTimeout)))); 1151throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(WriteTimeout)))); 1226new TimeoutException(InternalSR.TaskTimedOutError(timeoutHelper.OriginalTimeout)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
250return new TimeoutException(string.Format(SRServiceModel.SFxRequestTimedOut2, address, timeout)); 254return new TimeoutException(string.Format(SRServiceModel.SFxRequestTimedOut1, timeout));
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (1)
193throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRServiceModel.SfxCloseTimedOutWaitingForDispatchToComplete));
IIS.Common.TestLib (1)
TestConnections.cs (1)
148throw new TimeoutException(
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
119throw new TimeoutException($"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" +
Interop.FunctionalTests (2)
H2SpecCommands.cs (2)
262throw new TimeoutException($"h2spec didn't exit within {TimeoutSeconds * 2} seconds.", ex); 264throw new TimeoutException($"h2spec didn't exit within {TimeoutSeconds * 2} seconds.");
InteropTests (1)
src\Shared\Process\ProcessEx.cs (1)
65_exited.TrySetException(new TimeoutException(timeoutExMessage));
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSDataStream.cs (1)
201var timeoutException = new TimeoutException("Did not receive any data in the allotted time.");
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
89tcs.TrySetException(new TimeoutException($"Failed to start the debug proxy within the timeout period of {DebugProxyLaunchTimeout.TotalSeconds} seconds."));
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
ConcurrencyLimiterEventSourceTests.cs (1)
125throw new TimeoutException();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.cs (1)
194throw new TimeoutException("No log records were emitted, timeout was reached");
Microsoft.AspNetCore.InternalTesting (2)
src\Shared\TaskExtensions.cs (2)
92throw new TimeoutException(CreateMessage(timeout, filePath, lineNumber)); 127throw new TimeoutException(CreateMessage(timeout, filePath, lineNumber));
Microsoft.AspNetCore.InternalTesting.Tests (2)
TaskExtensionsTest.cs (2)
70throw new TimeoutException(message); 83throw new TimeoutException(message);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Listener\Utilities.cs (1)
140throw new TimeoutException("AcceptAsync has timed out.");
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\Shared\Process\ProcessEx.cs (1)
65_exited.TrySetException(new TimeoutException(timeoutExMessage));
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
269throw new TimeoutException(message);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
119throw new TimeoutException($"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" +
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
2390CloseException = new TimeoutException(
Microsoft.AspNetCore.SignalR.Specification.Tests (4)
Internal\TaskExtensions.cs (2)
32throw new TimeoutException(CreateMessage(timeout, filePath, lineNumber)); 56throw new TimeoutException(CreateMessage(timeout, filePath, lineNumber));
src\Shared\TaskExtensions.cs (2)
92throw new TimeoutException(CreateMessage(timeout, filePath, lineNumber)); 127throw new TimeoutException(CreateMessage(timeout, filePath, lineNumber));
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
123throw new TimeoutException($"Timed out waiting for application to start.{Environment.NewLine}Startup Logs:{Environment.NewLine}{RenderLogs(logs)}");
Microsoft.AspNetCore.SpaServices.Extensions (2)
Util\TaskTimeoutExtensions.cs (2)
16throw new TimeoutException(message); 28throw new TimeoutException(message);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
57throw new TimeoutException(t.ToString());
Microsoft.CodeAnalysis.Workspaces (1)
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
174throw new TimeoutException();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\UseExportProviderAttribute.cs (1)
160throw new TimeoutException(messageBuilder.ToString(), ex);
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
65_exited.TrySetException(new TimeoutException(timeoutExMessage));
Microsoft.Extensions.Caching.Hybrid.Tests (6)
StampedeTests.cs (6)
104throw new TimeoutException("Failed to activate"); 140throw new TimeoutException("Failed to activate"); 193throw new TimeoutException("Failed to activate"); 235throw new TimeoutException("Didn't get handshake back from task"); 271throw new TimeoutException("Failed to activate"); 319throw new TimeoutException("Didn't get handshake back from task");
Microsoft.Extensions.Http.Resilience.Tests (4)
Hedging\StandardHedgingTests.cs (1)
357throw new OperationCanceledExceptionMock(new TimeoutException());
Polly\HttpRetryStrategyOptionsTests.cs (3)
26[new OperationCanceledExceptionMock(new TimeoutException()), null!, true], 27[new OperationCanceledExceptionMock(new TimeoutException()), default(CancellationToken), true], 29[new OperationCanceledExceptionMock(new TimeoutException()), new CancellationToken(canceled: true), false],
Microsoft.ML.AutoML (1)
AutoMLExperiment\AutoMLExperiment.cs (1)
345throw new TimeoutException("Training time finished without completing a successful trial. Either no trial completed or the metric for all completed trials are NaN or Infinity");
PresentationCore (1)
MS\Internal\Automation\ElementUtil.cs (1)
231throw new TimeoutException(SR.AutomationTimeout);
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (3)
941throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout)); 953throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout)); 965throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout));
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
119throw new TimeoutException($"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" +
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
119throw new TimeoutException($"Did not receive a complete response within {Timeout}.{Environment.NewLine}{Environment.NewLine}" +
System.Data.Odbc (1)
Common\System\Data\Common\AdapterUtil.Odbc.cs (1)
58TimeoutException e = new TimeoutException(error);
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeClientStream.cs (1)
161throw new TimeoutException();
System.IO.Ports (8)
System\IO\Ports\SerialPort.cs (5)
764throw new TimeoutException(); 782throw new TimeoutException(); 842throw new TimeoutException(); 879throw new TimeoutException(); 1096throw new TimeoutException();
System\IO\Ports\SerialStream.Unix.cs (3)
434throw new TimeoutException(); 571throw new TimeoutException(); 592throw new TimeoutException();
System.Net.Http (2)
System\Net\Http\HttpClient.cs (1)
606e = toThrow = new TaskCanceledException(SR.Format(SR.net_http_request_timedout, _timeout.TotalSeconds), new TimeoutException(e.Message, e), oce.CancellationToken);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
849TimeoutException te = new TimeoutException(SR.net_http_connect_timedout, oce.InnerException);
System.Net.Http.Json (1)
System\Net\Http\Json\HttpClientJsonExtensions.cs (1)
98throw new TaskCanceledException(message, new TimeoutException(oce.Message, oce), oce.CancellationToken);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (1)
600return FromException<TResult>(new TimeoutException());
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
2846return FromException(new TimeoutException()); 2877if (thisRef.TrySetException(new TimeoutException()))
System.ServiceModel.Http (16)
System\ServiceModel\Channels\HttpChannelFactory.cs (2)
1074throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SR.Format( 1144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SR.Format(
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
374throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(_httpResponseMessage.StatusCode + " " + _httpResponseMessage.ReasonPhrase));
System\ServiceModel\Channels\SynchronizedMessageSource.cs (2)
34new TimeoutException(SRP.Format(SRP.WaitForMessageTimedOut, timeout), 58new TimeoutException(SRP.Format(SRP.ReceiveTimedOut2, timeout),
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (4)
244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 457throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 562throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(
System\ServiceModel\Channels\WebSocketHelper.cs (2)
236return innerException == null ? new TimeoutException(errorMsg) : new TimeoutException(errorMsg, innerException);
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (5)
130throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout))); 507throw FxTrace.Exception.AsError(new TimeoutException( 1043throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(ReadTimeout)))); 1123throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(WriteTimeout)))); 1198new TimeoutException(InternalSR.TaskTimedOutError(timeoutHelper.OriginalTimeout)));
System.ServiceModel.NetFramingBase (12)
System\ServiceModel\Channels\Connection.cs (1)
348return new TimeoutException(ioException.InnerException.Message, ioException);
System\ServiceModel\Channels\FramingChannels.cs (3)
219throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 281new TimeoutException(SR.Format(SR.TimeoutOnOpen, timeout), exception)); 360return new TimeoutException(SR.Format(SR.OpenTimedOutEstablishingTransportSession,
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (3)
142protected override TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException) => new TimeoutException(SR.Format(SR.RequestTimedOutEstablishingTransportSession, 231new TimeoutException(SR.Format(SR.TimeoutOnRequest, timeoutHelper.RemainingTime()), exception)); 275throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SR.Format(
System\ServiceModel\Channels\SynchronizedMessageSource.cs (2)
32new TimeoutException(SR.Format(SR.WaitForMessageTimedOut, timeout), 56new TimeoutException(SR.Format(SR.ReceiveTimedOut2, timeout),
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 404throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 480throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(
System.ServiceModel.NetNamedPipe (8)
System\ServiceModel\Channels\PipeConnection.cs (6)
97return new TimeoutException(_timeoutErrorString, pipeException); 269new TimeoutException(SR.PipeShutdownWriteError, e), ExceptionEventType); 283new TimeoutException(SR.PipeShutdownReadError, e), ExceptionEventType); 291new TimeoutException(SR.PipeShutdownReadError), ExceptionEventType); 332new TimeoutException(SR.PipeCloseFailed, e), ExceptionEventType); 487Exception timeoutException = new TimeoutException(SR.Format(SR.PipeWriteTimedOut, timeout));
System\ServiceModel\Channels\PipeConnectionInitiator.cs (2)
206timeoutException = new TimeoutException(SR.Format(SR.PipeConnectTimedOutServerTooBusy, 211timeoutException = new TimeoutException(SR.Format(SR.PipeConnectTimedOut,
System.ServiceModel.NetTcp (7)
System\ServiceModel\Channels\SocketConnection.cs (7)
367throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 534new TimeoutException(SR.Format(SR.TcpConnectionTimedOut, timeout))); 585new TimeoutException(SR.Format(SR.TcpConnectionTimedOut, timeout))); 699TimeoutException timeoutException = new TimeoutException(SR.Format(SR.TcpConnectionTimedOut, timeout), originalException); 719TimeoutException timeoutException = new TimeoutException(SR.Format(SR.TcpConnectionTimedOut, timeout), originalException); 746return new TimeoutException(timeoutErrorString, originalException); 932throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(
System.ServiceModel.Primitives (28)
Internals\System\Runtime\InputQueue.cs (3)
147throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout))); 159throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout))); 347throw Fx.Exception.AsError(new TimeoutException());
Internals\System\Runtime\TaskHelpers.cs (1)
345throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
Internals\System\Runtime\TimeoutHelper.cs (1)
239return new TimeoutException(SRP.Format(SRP.LockTimeoutExceptionMessage, timeout));
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (1)
160new TimeoutException(SRP.Format(SRP.TimeoutOnRequest, timeout)));
System\ServiceModel\Channels\InputChannel.cs (2)
29return new TimeoutException(SRP.Format(SRP.ReceiveTimedOut, channel.LocalAddress.Uri.AbsoluteUri, timeout)); 33return new TimeoutException(SRP.Format(SRP.ReceiveTimedOutNoLocalAddress, timeout));
System\ServiceModel\Channels\LifetimeManager.cs (2)
239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.SFxCloseTimedOut1, timeout))); 250throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.SFxCloseTimedOut1, timeout)));
System\ServiceModel\Channels\ReliableChannelBinder.cs (1)
624new TimeoutException(SRP.Format(SRP.TimeoutOnSend, timeout)));
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (3)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnOperation, timeout))); 403throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnOperation, timeout))); 908new TimeoutException(SRP.Format(timeoutString1Index, originalTimeout)));
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (1)
817throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.TimeoutOnRequest, _originalTimeout)));
System\ServiceModel\Channels\RequestChannel.cs (2)
271throw TraceUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.RequestChannelSendTimedOut, savedTimeout), 283throw TraceUtility.ThrowHelperError(new TimeoutException(SRP.Format(SRP.RequestChannelWaitForReplyTimedOut, savedTimeout),
System\ServiceModel\Channels\ServiceChannel.cs (2)
885return new TimeoutException(SRP.Format(SRP.TimeoutServiceChannelConcurrentOpen2, address, timeout)); 889return new TimeoutException(SRP.Format(SRP.TimeoutServiceChannelConcurrentOpen1, timeout));
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
782_exception = new TimeoutException(SRP.Format(SRP.TimeoutOnAddToWindow, timeout));
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
240return new TimeoutException(SRP.Format(SRP.SFxRequestTimedOut2, address, timeout)); 244return new TimeoutException(SRP.Format(SRP.SFxRequestTimedOut1, timeout));
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
516e = new TimeoutException(SRP.Format(SRP.ClientSecurityNegotiationTimeout, timeout, legs, timeLeft), e);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
1275throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new TimeoutException(SRP.Format(SRP.ClientSecurityCloseTimeout, timeout))); 1283throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new TimeoutException(SRP.Format(SRP.ClientSecurityOutputSessionCloseTimeout, timeoutHelper.OriginalTimeout)));
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
545e = new TimeoutException(SRP.Format(SRP.ClientSecuritySessionRequestTimeout, timeout), e);
System\ServiceModel\ServiceChannelManager.cs (2)
95throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.SfxCloseTimedOutWaitingForDispatchToComplete)); 129throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(SRP.SfxCloseTimedOutWaitingForDispatchToComplete));
System.ServiceModel.UnixDomainSocket (7)
System\ServiceModel\Channels\SocketConnection.cs (7)
346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException( 498new TimeoutException(SR.Format(SR.UDSConnectionTimedOut, timeout))); 549new TimeoutException(SR.Format(SR.UDSConnectionTimedOut, timeout))); 663TimeoutException timeoutException = new TimeoutException(SR.Format(SR.UDSConnectionTimedOut, timeout), originalException); 683TimeoutException timeoutException = new TimeoutException(SR.Format(SR.UDSConnectionTimedOut, timeout), originalException); 710return new TimeoutException(timeoutErrorString, originalException); 839throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException("Timed out while connecting to Unix domain socket", innerException));
System.Threading.Tasks.Dataflow (1)
Base\DataflowBlock.cs (1)
1344return Common.InitializeStackTrace(new TimeoutException());
System.Transactions.Local (4)
System\Transactions\TransactionState.cs (4)
593TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout); 1250TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout); 2064tx._innerException ??= new TimeoutException(SR.TraceTransactionTimeout); 3608TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout);
Templates.Blazor.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
65_exited.TrySetException(new TimeoutException(timeoutExMessage));
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
65_exited.TrySetException(new TimeoutException(timeoutExMessage));
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
65_exited.TrySetException(new TimeoutException(timeoutExMessage));
Templates.Mvc.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
65_exited.TrySetException(new TimeoutException(timeoutExMessage));
Templates.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
65_exited.TrySetException(new TimeoutException(timeoutExMessage));
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
737throw new TimeoutException();
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\Misc.cs (2)
1701throw new TimeoutException(); 1959throw new TimeoutException();
Wasm.Performance.Driver (2)
Program.cs (2)
102BenchmarkResultTask.TrySetException(new TimeoutException(exceptionMessage)); 317throw new TimeoutException("Timed out waiting to start the host");
237 references to TimeoutException
Aspire.Dashboard.Components.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Dashboard.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.GitHub.Models.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.Kafka.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.MySql.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.NodeJs.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.OpenAI.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.PostgreSQL.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.RabbitMQ.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Hosting.Testing.Tests (2)
TestingBuilderTests.cs (2)
502Assert.IsType<TimeoutException>(ex); 554Assert.IsType<TimeoutException>(ex);
Aspire.Hosting.Tests (6)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
WaitForTests.cs (3)
266var ex = await Assert.ThrowsAsync<TimeoutException>(async () => { 278[InlineData(WaitBehavior.WaitOnResourceUnavailable, typeof(TimeoutException), "The operation has timed out.")]
Aspire.Hosting.Valkey.Tests (3)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Aspire.Playground.Tests (4)
AppHostTests.cs (1)
52catch (TimeoutException te)
tests\Shared\AsyncTestHelpers.cs (3)
34private static readonly string s_assemblyName = typeof(TimeoutException).Assembly.GetName().Name!; 141catch (TimeoutException ex) when (ex.Source == s_assemblyName) 175catch (TimeoutException ex) when (ex.Source == s_assemblyName)
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
110catch (TimeoutException)
Client.ExpectedExceptions.IntegrationTests (8)
ExpectedExceptionTests.4.0.0.cs (6)
68TimeoutException exception = Assert.Throws<TimeoutException>(() => 115TimeoutException exception = Assert.Throws<TimeoutException>(() => 362TimeoutException toe = exceptions[i] as TimeoutException;
ExpectedExceptionTests.4.1.0.cs (2)
612TimeoutException toe = exceptions[i] as TimeoutException;
Contract.Service.IntegrationTests (2)
ServiceContractTests.4.1.0.cs (2)
276Assert.Throws<TimeoutException>(() => 332Assert.Throws<TimeoutException>(() =>
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
399catch (Exception e) when (e is IOException || e is TimeoutException)
dotnet-svcutil-lib (39)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
556base(typeof(TimeoutException), diagnosis)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (1)
226internal static TimeoutException CreateEnterTimedOutException(TimeSpan timeout)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (2)
518if (ioException.InnerException is TimeoutException) 752catch (TimeoutException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
181catch (TimeoutException exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolHelper.cs (6)
46protected abstract TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException); 81catch (TimeoutException) 107catch (TimeoutException e) 163catch (TimeoutException /*e*/) 189catch (TimeoutException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (3)
135catch (TimeoutException timeoutException) 257catch (TimeoutException timeoutException) 301catch (TimeoutException timeoutException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (4)
322catch (TimeoutException exception) 350catch (TimeoutException exception) 425protected override TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (2)
282catch (TimeoutException timeoutException) 294catch (TimeoutException timeoutException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (1)
318catch (TimeoutException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (2)
854catch (TimeoutException e) 877private TimeoutException GetOpenTimeoutException(TimeSpan timeout)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (2)
250catch (TimeoutException e) 269catch (TimeoutException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (3)
222TimeoutException timeoutException = new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout), originalException); 242TimeoutException timeoutException = new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout), originalException); 512private static TimeoutException CreateTimeoutException(Uri uri, TimeSpan timeout, IPAddress[] addresses, int invalidAddressCount,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (2)
178catch (TimeoutException e) 198catch (TimeoutException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (2)
152TimeoutException timeoutException = GetTimeoutException(exception, timeout, operation); 215internal static TimeoutException GetTimeoutException(Exception innerException, TimeSpan timeout, string operation)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
663catch (TimeoutException exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
245private TimeoutException GetReceiveTimeoutException(TimeSpan timeout)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorHandlingReceiver.cs (3)
78catch (TimeoutException e) 115catch (TimeoutException e) 161catch (TimeoutException e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (2)
134catch (TimeoutException e) 174catch (TimeoutException e)
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
376catch (TimeoutException)
IIS.Common.TestLib (1)
TestConnections.cs (1)
146catch (TimeoutException ex) when (offset != 0)
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
441catch (TimeoutException)
InMemory.FunctionalTests (3)
Http3\WebTransport\WebTransportHandshakeTests.cs (1)
43catch (TimeoutException)
Http3\WebTransport\WebTransportTestUtilities.cs (1)
38catch (TimeoutException exception)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
117catch (TimeoutException ex) when (offset != 0)
InteropTests (3)
InteropTests.cs (3)
95catch (TimeoutException ex) 122catch (Exception ex) when (ex is not TimeoutException) 148catch (Exception ex) when (ex is not TimeoutException)
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSDataStream.cs (1)
201var timeoutException = new TimeoutException("Did not receive any data in the allotted time.");
Microsoft.AspNetCore.Components.Server.Tests (6)
Circuits\RemoteJSDataStreamTest.cs (6)
209unhandledExceptionRaisedTask.SetResult(ex is TimeoutException); 232var ex = await Assert.ThrowsAsync<TimeoutException>(async () => await remoteJSDataStream.CopyToAsync(mem).DefaultTimeout()); 250unhandledExceptionRaisedTask.SetResult(ex is TimeoutException); 281var ex = await Assert.ThrowsAsync<TimeoutException>(async () => await remoteJSDataStream.CopyToAsync(mem).DefaultTimeout());
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
342await Assert.ThrowsAsync<TimeoutException>(() => renderTask1.WaitAsync(TimeSpan.FromMilliseconds(250)));
Microsoft.AspNetCore.Hosting.FunctionalTests (3)
ShutdownTests.cs (2)
95catch (TimeoutException ex) 108catch (TimeoutException ex)
WebHostBuilderTests.cs (1)
57catch (TimeoutException ex)
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionManagerTests.cs (1)
123catch (Exception ex) when (!(ex is TimeoutException))
Microsoft.AspNetCore.InternalTesting (2)
src\Shared\TaskExtensions.cs (2)
90catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace) 125catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace)
Microsoft.AspNetCore.InternalTesting.Tests (8)
TaskExtensionsTest.cs (8)
17await Assert.ThrowsAsync<TimeoutException>(async () => await Task.Delay(30000, cts.Token).TimeoutAfter(TimeSpan.FromMilliseconds(50))); 37await Assert.ThrowsAsync<TimeoutException>(async () => await Task.Delay(30000, cts.Token).DefaultTimeout(TimeSpan.FromMilliseconds(50))); 45await Assert.ThrowsAsync<TimeoutException>(async () => await Task.Delay(30000, cts.Token).DefaultTimeout(50)); 53await Assert.ThrowsAsync<TimeoutException>(async () => await Task.Delay(30000, cts.Token).DefaultTimeout(50)); 72var exception = await Assert.ThrowsAsync<TimeoutException>(() => ExpectedTimeout().TimeoutAfter(TimeSpan.FromMilliseconds(30000))); 85var exception = await Assert.ThrowsAsync<TimeoutException>(() => ExpectedTimeout().TimeoutAfter(TimeSpan.FromMilliseconds(30000)));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
117catch (TimeoutException ex) when (offset != 0)
Microsoft.AspNetCore.SignalR.Client.Tests (6)
HubConnectionTests.cs (4)
367var exception = Assert.IsType<TimeoutException>(await closeTcs.Task.DefaultTimeout()); 421var exception = await Assert.ThrowsAsync<TimeoutException>(() => invokeTask);
HubConnectionTests.Protocol.cs (2)
488var ex = Assert.ThrowsAsync<TimeoutException>(async () => await handlerTask.DefaultTimeout(2000)); 522var ex = Assert.ThrowsAsync<TimeoutException>(async () => await handlerTask.DefaultTimeout(2000));
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\Shared\TaskExtensions.cs (2)
90catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace) 125catch (TimeoutException ex) when (ex.Source == typeof(TaskExtensions).Namespace)
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.cs (2)
3609var ex = await Assert.ThrowsAsync<TimeoutException>(async () =>
Microsoft.Bcl.TimeProvider (2)
System\Threading\Tasks\TimeProviderTaskExtensions.cs (2)
124/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param> 214/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param>
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
399catch (Exception e) when (e is IOException || e is TimeoutException)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
399catch (Exception e) when (e is IOException || e is TimeoutException)
Microsoft.Extensions.Http.Resilience (1)
Polly\HttpClientResiliencePredicates.cs (1)
55&& outcome.Exception is OperationCanceledException { Source: "System.Private.CoreLib", InnerException: TimeoutException };
Microsoft.ML.AutoML (1)
AutoMLExperiment\AutoMLExperiment.cs (1)
209/// and throws <see cref="TimeoutException"/> with message "Training time finished without completing a trial run" when no trial has completed.
Microsoft.ML.AutoML.Tests (3)
AutoMLExperimentTests.cs (3)
59await runExperimentAction.Should().ThrowExactlyAsync<TimeoutException>(); 88await runExperimentAction.Should().ThrowExactlyAsync<TimeoutException>(); 115await runExperimentAction.Should().ThrowExactlyAsync<TimeoutException>();
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (1)
366catch (TimeoutException)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1193[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TimeoutException))]
netstandard (1)
netstandard.cs (1)
2156[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TimeoutException))]
Replay (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
399catch (Exception e) when (e is IOException || e is TimeoutException)
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
205catch (TimeoutException)
Security.TransportSecurity.IntegrationTests (1)
Tcp\StreamingTests.4.1.0.cs (1)
221Assert.Throws<TimeoutException>(() =>
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
117catch (TimeoutException ex) when (offset != 0)
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\StreamBackedTestConnection.cs (1)
117catch (TimeoutException ex) when (offset != 0)
System.Data.Odbc (2)
Common\System\Data\Common\AdapterUtil.Odbc.cs (2)
56internal static TimeoutException TimeoutException(string error) 58TimeoutException e = new TimeoutException(error);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
849TimeoutException te = new TimeoutException(SR.net_http_connect_timedout, oce.InnerException);
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (4)
549/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param> 557/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param> 567/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param> 576/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (4)
2798/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param> 2803/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param> 2814/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param> 2821/// <param name="timeout">The timeout after which the <see cref="Task"/> should be faulted with a <see cref="TimeoutException"/> if it hasn't otherwise completed.</param>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
846[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.TimeoutException))]
System.ServiceModel.Http (6)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
130catch (TimeoutException e) 150catch(TimeoutException e) 168catch (TimeoutException e)
System\ServiceModel\Channels\WebSocketHelper.cs (2)
151TimeoutException timeoutException = GetTimeoutException(exception, timeout, operation); 214internal static TimeoutException GetTimeoutException(Exception innerException, TimeSpan timeout, string operation)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (1)
635catch (TimeoutException exception)
System.ServiceModel.NetFramingBase (18)
System\ServiceModel\Channels\Connection.cs (1)
346if (ioException.InnerException is TimeoutException)
System\ServiceModel\Channels\ConnectionPool.cs (2)
182catch (TimeoutException exception) 344var toe = ae.InnerExceptions.FirstOrDefault(e => e is TimeoutException);
System\ServiceModel\Channels\ConnectionPoolHelper.cs (4)
44protected abstract TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException); 79catch (TimeoutException) 105catch (TimeoutException e)
System\ServiceModel\Channels\ConnectionUtilities.cs (1)
18catch (TimeoutException)
System\ServiceModel\Channels\FramingChannels.cs (3)
278catch (TimeoutException exception) 358protected override TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException)
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
155catch (TimeoutException e)
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (3)
142protected override TimeoutException CreateNewConnectionTimeoutException(TimeSpan timeout, TimeoutException innerException) => new TimeoutException(SR.Format(SR.RequestTimedOutEstablishingTransportSession, 228catch (TimeoutException exception)
System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (3)
133catch (TimeoutException e) 152catch(TimeoutException e) 170catch (TimeoutException e)
System.ServiceModel.NetNamedPipe (5)
System\ServiceModel\Channels\PipeConnection.cs (4)
266catch (TimeoutException e) 280catch (TimeoutException e) 324catch (TimeoutException e) 329catch (TimeoutException e)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
201TimeoutException timeoutException;
System.ServiceModel.NetTcp (4)
System\ServiceModel\Channels\SocketConnection.cs (4)
365catch (TimeoutException timeoutException) 699TimeoutException timeoutException = new TimeoutException(SR.Format(SR.TcpConnectionTimedOut, timeout), originalException); 719TimeoutException timeoutException = new TimeoutException(SR.Format(SR.TcpConnectionTimedOut, timeout), originalException); 914private static TimeoutException CreateTimeoutException(Uri uri, TimeSpan timeout, IPAddress[] addresses, int invalidAddressCount,
System.ServiceModel.Primitives (25)
Internals\System\Runtime\Fx.cs (1)
607base(typeof(TimeoutException), diagnosis)
Internals\System\Runtime\TimeoutHelper.cs (1)
237internal static TimeoutException CreateEnterTimedOutException(TimeSpan timeout)
System\ServiceModel\ChannelFactory.cs (1)
164catch (TimeoutException)
System\ServiceModel\Channels\ReliableChannelBinder.cs (1)
448|| (e is TimeoutException);
System\ServiceModel\Channels\ReliableOutputConnection.cs (1)
159catch (TimeoutException)
System\ServiceModel\Channels\RequestChannel.cs (2)
269catch (TimeoutException timeoutException) 281catch (TimeoutException timeoutException)
System\ServiceModel\Channels\RequestContextBase.cs (1)
317catch (TimeoutException e)
System\ServiceModel\Channels\ServiceChannel.cs (3)
855catch (TimeoutException e) 880private TimeoutException GetOpenTimeoutException(TimeSpan timeout) 1627catch (TimeoutException)
System\ServiceModel\ClientBase.cs (2)
196ex is TimeoutException)) 491catch (TimeoutException)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
235private TimeoutException GetReceiveTimeoutException(TimeSpan timeout)
System\ServiceModel\Dispatcher\ErrorHandlingReceiver.cs (3)
79catch (TimeoutException e) 116catch (TimeoutException e) 162catch (TimeoutException e)
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (2)
200catch (TimeoutException e) 240catch (TimeoutException e)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (2)
494catch (TimeoutException) 514if (e is TimeoutException)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (3)
880if ((e is CommunicationException) || (e is TimeoutException) || (Fx.IsFatal(e)) || !ShouldWrapException(e)) 1688catch (TimeoutException) 1704catch (TimeoutException)
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (1)
543if (e is TimeoutException)
System.ServiceModel.UnixDomainSocket (4)
System\ServiceModel\Channels\SocketConnection.cs (4)
344catch (TimeoutException timeoutException) 663TimeoutException timeoutException = new TimeoutException(SR.Format(SR.UDSConnectionTimedOut, timeout), originalException); 683TimeoutException timeoutException = new TimeoutException(SR.Format(SR.UDSConnectionTimedOut, timeout), originalException); 837private static TimeoutException CreateTimeoutException(Uri uri, TimeSpan timeout, SocketException innerException)
System.Threading.Tasks.Dataflow (2)
Base\DataflowBlock.cs (2)
897/// <exception cref="System.TimeoutException">The specified timeout expired before an item was received from the source.</exception> 919/// <exception cref="System.TimeoutException">The specified timeout expired before an item was received from the source.</exception>
System.Transactions.Local (3)
System\Transactions\TransactionState.cs (3)
593TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout); 1250TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout); 3608TimeoutException e = new TimeoutException(SR.TraceTransactionTimeout);
Templates.Blazor.Tests (1)
BlazorTemplateTest.cs (1)
321catch (TimeoutException)
UIAutomationClient (1)
MS\Internal\Automation\FocusTracker.cs (1)
300catch (TimeoutException)
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\ClickablePoint.cs (1)
266catch (TimeoutException)
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
39catch (TimeoutException)
vbc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
399catch (Exception e) when (e is IOException || e is TimeoutException)
VBCSCompiler (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
399catch (Exception e) when (e is IOException || e is TimeoutException)